<div>Today’s post will be rather short, demonstrating a set of functions from the psych package, which allows you to conduct analysis by group. These commands add “By” to the end of existing functions. But first, a word of caution: With great power comes great responsibility. This function could very easily turn into a fishing expedition (also known as <a rel="nofollow" href="http://www.deeplytrivial.com/2016/05/john-oliver-on-science-in-media.html" target="_blank">p-hacking</a>). Conducting planned group comparisons is fine. Conducting all possible group comparisons and cherry-picking any differences is problematic. So use these group by functions with care.
<p>Let’s pull up the Facebook dataset for this.</p>
<div>
<div>
<div>
<pre><span>Facebook</span><span>&lt;-</span><span>read.delim</span><span>(</span><span>file</span><span>=</span><span>&quot;full_facebook_set.txt&quot;</span><span>,</span> <span>header</span><span>=</span><span>TRUE</span><span>)</span><br></pre>
</div>
</div>
</div>
<p>This is the full dataset, which includes all the variables I collected. I don’t want to run analyses on all variables, so I’ll pull out the ones most important for this blog post demonstration.</p>
<div>
<div>
<div>
<pre><span>smallFB</span><span>&lt;-</span><span>Facebook[,</span><span>c</span><span>(</span><span>1</span><span>:</span><span>2</span><span>,</span><span>77</span><span>:</span><span>80</span><span>,</span><span>105</span><span>:</span><span>116</span><span>,</span><span>122</span><span>,</span><span>133</span><span>:</span><span>137</span><span>,</span><span>170</span><span>,</span><span>187</span><span>)]</span><br></pre>
</div>
</div>
</div>
<p>First, I’ll run descriptives on this smaller data frame by gender.</p>
<div>
<div>
<div>
<pre><span>library</span><span>(psych)</span><br></pre>
</div>
<div>
<pre>## Warning: package 'psych' was built under R version 3.4.4<br></pre>
</div>
<div>
<pre><span>describeBy</span><span>(smallFB,smallFB</span><span>$</span><span>gender)</span><br></pre>
</div>
<div>
<pre>## <br>##  Descriptive statistics by group <br>## group: 0<br>##              vars  n      mean      sd   median   trimmed     mad      min<br>## RespondentId    1 73 164647.77 1711.78 164943.0 164587.37 2644.96 162373.0<br>## gender          2 73      0.00    0.00      0.0      0.00    0.00      0.0<br>## Rumination      3 73     37.66   14.27     37.0     37.41   13.34      8.0<br>## DepRelat        4 73     21.00    7.86     21.0     20.95    5.93      4.0<br>## Brood           5 73      8.49    3.76      9.0      8.42    2.97      1.0<br>## Reflect         6 73      8.16    4.44      8.0      8.24    4.45      0.0<br>## SavorPos        7 73     64.30   10.93     65.0     64.92    8.90     27.0<br>## SavorNeg        8 73     33.30   11.48     33.0     33.08   13.34     12.0<br>## SavorTot        9 73     31.00   20.15     34.0     31.15   19.27    -10.0<br>## AntPos         10 73     20.85    3.95     21.0     20.93    4.45     10.0<br>## AntNeg         11 73     11.30    4.23     11.0     11.22    4.45      4.0<br>## AntTot         12 73      9.55    6.90     10.0      9.31    7.41     -3.0<br>## MomPos         13 73     21.68    3.95     22.0     21.90    2.97      9.0<br>## MomNeg         14 73     11.45    4.63     11.0     11.41    5.93      4.0<br>## MomTot         15 73     10.23    7.63     11.0     10.36    8.90    -11.0<br>## RemPos         16 73     21.77    4.53     23.0     22.20    4.45      8.0<br>## RemNeg         17 73     10.55    4.39      9.0     10.27    4.45      4.0<br>## RemTot         18 73     11.22    8.05     14.0     11.68    7.41     -8.0<br>## LifeSat        19 73     24.63    6.80     25.0     24.93    7.41     10.0<br>## Extravert      20 73      4.32    1.58      4.5      4.33    1.48      1.5<br>## Agreeable      21 73      4.79    1.08      5.0      4.85    1.48      1.0<br>## Conscient      22 73      5.14    1.34      5.0      5.19    1.48      2.0<br>## EmotStab       23 73      5.10    1.22      5.0      5.15    1.48      1.0<br>## OpenExp        24 73      5.11    1.29      5.5      5.20    1.48      2.0<br>## Health         25 73     28.77   19.56     25.0     26.42   17.79      0.0<br>## Depression     26 73     10.26    7.27      9.0      9.56    5.93      0.0<br>##                 max  range  skew kurtosis     se<br>## RespondentId 168279 5906.0  0.21    -1.36 200.35<br>## gender            0    0.0   NaN      NaN   0.00<br>## Rumination       71   63.0  0.12    -0.53   1.67<br>## DepRelat         42   38.0  0.10    -0.04   0.92<br>## Brood            17   16.0  0.15    -0.38   0.44<br>## Reflect          19   19.0 -0.12    -0.69   0.52<br>## SavorPos         84   57.0 -0.69     0.76   1.28<br>## SavorNeg         57   45.0  0.14    -0.95   1.34<br>## SavorTot         72   82.0 -0.17    -0.75   2.36<br>## AntPos           28   18.0 -0.24    -0.46   0.46<br>## AntNeg           22   18.0  0.27    -0.55   0.49<br>## AntTot           24   27.0  0.11    -0.76   0.81<br>## MomPos           28   19.0 -0.69     0.55   0.46<br>## MomNeg           22   18.0  0.08    -0.98   0.54<br>## MomTot           24   35.0 -0.25    -0.55   0.89<br>## RemPos           28   20.0 -0.88     0.35   0.53<br>## RemNeg           22   18.0  0.56    -0.66   0.51<br>## RemTot           24   32.0 -0.53    -0.77   0.94<br>## LifeSat          35   25.0 -0.37    -0.84   0.80<br>## Extravert         7    5.5 -0.09    -0.93   0.19<br>## Agreeable         7    6.0 -0.60     1.04   0.13<br>## Conscient         7    5.0 -0.24    -0.98   0.16<br>## EmotStab          7    6.0 -0.60     0.28   0.14<br>## OpenExp           7    5.0 -0.49    -0.55   0.15<br>## Health           91   91.0  1.13     1.14   2.29<br>## Depression       36   36.0  1.02     0.95   0.85<br>## -------------------------------------------------------- <br>## group: 1<br>##              vars   n      mean      sd    median   trimmed     mad<br>## RespondentId    1 184 164373.49 1515.34 164388.00 164253.72 1891.80<br>## gender          2 184      1.00    0.00      1.00      1.00    0.00<br>## Rumination      3 184     38.09   15.28     40.00     38.16   17.05<br>## DepRelat        4 184     21.67    8.78     21.00     21.66    8.90<br>## Brood           5 184      8.57    4.14      8.50      8.47    3.71<br>## Reflect         6 184      7.84    4.06      8.00      7.73    4.45<br>## SavorPos        7 184     67.22    9.63     68.00     67.71    8.90<br>## SavorNeg        8 184     29.75   11.62     27.50     28.72    9.64<br>## SavorTot        9 184     37.47   19.30     40.00     38.66   20.02<br>## AntPos         10 184     22.18    3.37     23.00     22.28    2.97<br>## AntNeg         11 184     10.10    4.44      9.00      9.78    4.45<br>## AntTot         12 184     12.08    6.85     14.00     12.36    5.93<br>## MomPos         13 184     22.28    3.88     23.00     22.59    2.97<br>## MomNeg         14 184     10.60    4.88      9.50     10.13    5.19<br>## MomTot         15 184     11.68    7.75     13.00     12.29    7.41<br>## RemPos         16 184     22.76    3.85     23.00     23.10    2.97<br>## RemNeg         17 184      9.05    3.79      8.00      8.68    2.97<br>## RemTot         18 184     13.71    6.97     15.00     14.34    5.93<br>## LifeSat        19 184     23.76    6.25     24.00     24.18    7.41<br>## Extravert      20 184      4.66    1.57      5.00      4.74    1.48<br>## Agreeable      21 184      5.22    1.06      5.50      5.26    1.48<br>## Conscient      22 184      5.32    1.24      5.50      5.42    1.48<br>## EmotStab       23 184      4.70    1.31      4.75      4.75    1.11<br>## OpenExp        24 184      5.47    1.08      5.50      5.56    0.74<br>## Health         25 184     32.54   16.17     30.00     31.43   16.31<br>## Depression     26 184     12.19    8.48      9.00     11.09    5.93<br>##                   min    max  range  skew kurtosis     se<br>## RespondentId 162350.0 167714 5364.0  0.46    -0.90 111.71<br>## gender            1.0      1    0.0   NaN      NaN   0.00<br>## Rumination        3.0     74   71.0 -0.05    -0.60   1.13<br>## DepRelat          0.0     42   42.0  0.00    -0.46   0.65<br>## Brood             0.0     19   19.0  0.19    -0.62   0.31<br>## Reflect           0.0     19   19.0  0.25    -0.48   0.30<br>## SavorPos         33.0     84   51.0 -0.59     0.36   0.71<br>## SavorNeg         12.0     64   52.0  0.79     0.25   0.86<br>## SavorTot        -18.0     72   90.0 -0.57    -0.10   1.42<br>## AntPos            9.0     28   19.0 -0.49     0.41   0.25<br>## AntNeg            4.0     22   18.0  0.63    -0.39   0.33<br>## AntTot           -8.0     24   32.0 -0.43    -0.48   0.50<br>## MomPos           10.0     28   18.0 -0.81     0.54   0.29<br>## MomNeg            4.0     24   20.0  0.81    -0.03   0.36<br>## MomTot          -13.0     24   37.0 -0.69    -0.03   0.57<br>## RemPos            9.0     28   19.0 -0.87     0.81   0.28<br>## RemNeg            4.0     21   17.0  0.83     0.33   0.28<br>## RemTot           -9.0     24   33.0 -0.82     0.50   0.51<br>## LifeSat           8.0     35   27.0 -0.53    -0.32   0.46<br>## Extravert         1.0      7    6.0 -0.36    -0.72   0.12<br>## Agreeable         2.5      7    4.5 -0.27    -0.63   0.08<br>## Conscient         1.0      7    6.0 -0.70     0.13   0.09<br>## EmotStab          1.5      7    5.5 -0.35    -0.73   0.10<br>## OpenExp           1.5      7    5.5 -0.91     0.62   0.08<br>## Health            2.0     85   83.0  0.60    -0.05   1.19<br>## Depression        0.0     39   39.0  1.14     0.66   0.62<br></pre>
</div>
</div>
</div>
<p>In this dataset, I coded men as 0 and women as 1. The descriptive statistics table generated includes all scale and subscale scores, and gives me mean, standard deviation, median, a trimmed mean (dropping very low and very high values), median absolute deviation, minimum and maximum values, range, skewness, and kurtosis. I’d need to run t-tests to find out if differences were significant, but this still gives me some idea of how men and women might differ on these measures.</p>
<p>There are certain measures I included that we might hypothesize would show gender differences. For instance, some research suggests gender differences for rumination and depression. In addition to running descriptives by group, I might also want to display these differences in a <a rel="nofollow" href="http://www.deeplytrivial.com/2018/01/statistics-sunday-violin-plots.html" target="_blank">violin plot</a>. The psych package can quickly generate such a plot by group.</p>
<div>
<div>
<div>
<pre><span>violinBy</span><span>(smallFB,</span><span>&quot;Rumination&quot;</span><span>,</span><span>&quot;gender&quot;</span><span>,</span><span>grp.name</span><span>=</span><span>c</span><span>(</span><span>&quot;M&quot;</span><span>,</span><span>&quot;F&quot;</span><span>))</span><br></pre>
</div>
</div>
<div><a rel="nofollow" href="https://i1.wp.com/1.bp.blogspot.com/-7EQXxCxtg5k/Wt-Zh2_iChI/AAAAAAAALX0/7bkfRNf1r3UZjQEsxqcU27L8_KogJgHmQCLcBGAs/s1600/unnamed-chunk-4-1.png?ssl=1" target="_blank"><img border="0" src="https://i2.wp.com/1.bp.blogspot.com/-7EQXxCxtg5k/Wt-Zh2_iChI/AAAAAAAALX0/7bkfRNf1r3UZjQEsxqcU27L8_KogJgHmQCLcBGAs/s320/unnamed-chunk-4-1.png?resize=450%2C504&ssl=1" data-original-width="450" width="450" data-original-height="504" data-recalc-dims="1"></a></div>
<div>
<div>
<pre><span>violinBy</span><span>(smallFB,</span><span>&quot;Depression&quot;</span><span>,</span><span>&quot;gender&quot;</span><span>,</span><span>grp.name</span><span>=</span><span>c</span><span>(</span><span>&quot;M&quot;</span><span>,</span><span>&quot;F&quot;</span><span>))</span><br></pre>
</div>
</div>
<div><a rel="nofollow" href="https://i1.wp.com/4.bp.blogspot.com/-vDhN3sxpQUk/Wt-Zl4Lf1NI/AAAAAAAALX4/-7rFiX-ybAoCrQdnOp5VkP12_XfDpTaYACLcBGAs/s1600/unnamed-chunk-4-2.png?ssl=1" target="_blank"><img border="0" src="https://i0.wp.com/4.bp.blogspot.com/-vDhN3sxpQUk/Wt-Zl4Lf1NI/AAAAAAAALX4/-7rFiX-ybAoCrQdnOp5VkP12_XfDpTaYACLcBGAs/s320/unnamed-chunk-4-2.png?resize=450%2C504&ssl=1" data-original-width="450" width="450" data-original-height="504" data-recalc-dims="1"></a></div>
</div>
<p>ggplot2 will generate a violin plot by group, so this feature might not be as useful for final displays, but could help in quickly visualizing the data during analysis. And you may find that you prefer the appearance of this plots. To each his own.</p>
<p>Another function is error.bars.by, which plots means and confidence intervals by group for multiple variables. Again, this is a way to get some quick visuals, though differences in scale among measures should be taken into consideration when generating this plot. One set of variables for which this display might be useful is the 5 subscales of the Five-Factor Personality Inventory. This 10-item measure assesses where participants fall on the so-called Big Five personality traits: Openness to Experience, Conscientiousness, Extraversion, Agreeableness, and Neuroticism (Emotional Stability). These subscales are all on the same metric.</p>
<div>
<div>
<div>
<pre><span>error.bars.by</span><span>(smallFB[,</span><span>c</span><span>(</span><span>20</span><span>:</span><span>24</span><span>)],</span><span>group</span><span>=smallFB</span><span>$</span><span>gender,</span><span>xlab</span><span>=</span><span>&quot;Big Five Personality Traits&quot;</span><span>,</span><span>ylab</span><span>=</span><span>&quot;Score on Subscale&quot;</span><span>)</span><br></pre>
</div>
</div>
<div><a rel="nofollow" href="https://i2.wp.com/4.bp.blogspot.com/-3dE6UbhcBIE/Wt-ZrPDVBRI/AAAAAAAALX8/QxKwTOSBD8UHNoPQgW9Qg7bjFQpqRfkmACLcBGAs/s1600/unnamed-chunk-5-1.png?ssl=1" target="_blank"><img border="0" src="https://i0.wp.com/4.bp.blogspot.com/-3dE6UbhcBIE/Wt-ZrPDVBRI/AAAAAAAALX8/QxKwTOSBD8UHNoPQgW9Qg7bjFQpqRfkmACLcBGAs/s320/unnamed-chunk-5-1.png?resize=450%2C432&ssl=1" data-original-width="450" width="450" data-original-height="432" data-recalc-dims="1"></a></div>
</div>
<p>Finally, we have the statsBy function, which gives descriptive statistics by group as well as between group statistics. This functions generates a lot of output, and you can read more about everything it gives you <a rel="nofollow" href="https://www.rdocumentation.org/packages/psych/versions/1.7.8/topics/statsBy?tap_a=5644-dce66f&tap_s=10907-287229" target="_blank">here</a>. </p>
<div>
<div>
<div>
<pre><span>FBstats</span><span>&lt;-</span><span>statsBy</span><span>(smallFB[,</span><span>2</span><span>:</span><span>26</span><span>],</span><span>&quot;gender&quot;</span><span>,</span><span>cors</span><span>=</span><span>TRUE</span><span>,</span><span>method</span><span>=</span><span>&quot;pearson&quot;</span><span>,</span><span>use</span><span>=</span><span>&quot;pairwise&quot;</span><span>)</span><br><span>print</span><span>(FBstats,</span><span>short</span><span>=</span><span>FALSE</span><span>)</span><br></pre>
</div>
<div>
<pre>## Statistics within and between groups  <br>## Call: statsBy(data = smallFB[, 2:26], group = &quot;gender&quot;, cors = TRUE, <br>##     method = &quot;pearson&quot;, use = &quot;pairwise&quot;)<br>## Intraclass Correlation 1 (Percentage of variance due to groups) <br>##     gender Rumination   DepRelat      Brood    Reflect   SavorPos <br>##       1.00      -0.01      -0.01      -0.01      -0.01       0.03 <br>##   SavorNeg   SavorTot     AntPos     AntNeg     AntTot     MomPos <br>##       0.03       0.04       0.05       0.02       0.05       0.00 <br>##     MomNeg     MomTot     RemPos     RemNeg     RemTot    LifeSat <br>##       0.00       0.01       0.02       0.05       0.04       0.00 <br>##  Extravert  Agreeable  Conscient   EmotStab    OpenExp     Health <br>##       0.01       0.05       0.00       0.03       0.03       0.01 <br>## Depression <br>##       0.01 <br>## Intraclass Correlation 2 (Reliability of group differences) <br>##     gender Rumination   DepRelat      Brood    Reflect   SavorPos <br>##       1.00     -22.34      -2.06     -50.93      -2.21       0.77 <br>##   SavorNeg   SavorTot     AntPos     AntNeg     AntTot     MomPos <br>##       0.80       0.83       0.86       0.75       0.86       0.19 <br>##     MomNeg     MomTot     RemPos     RemNeg     RemTot    LifeSat <br>##       0.39       0.46       0.68       0.87       0.84      -0.04 <br>##  Extravert  Agreeable  Conscient   EmotStab    OpenExp     Health <br>##       0.60       0.88       0.05       0.80       0.81       0.60 <br>## Depression <br>##       0.66 <br>## eta^2 between groups  <br>## Rumination.bg   DepRelat.bg      Brood.bg    Reflect.bg   SavorPos.bg <br>##          0.00          0.00          0.00          0.00          0.02 <br>##   SavorNeg.bg   SavorTot.bg     AntPos.bg     AntNeg.bg     AntTot.bg <br>##          0.02          0.02          0.03          0.02          0.03 <br>##     MomPos.bg     MomNeg.bg     MomTot.bg     RemPos.bg     RemNeg.bg <br>##          0.00          0.01          0.01          0.01          0.03 <br>##     RemTot.bg    LifeSat.bg  Extravert.bg  Agreeable.bg  Conscient.bg <br>##          0.02          0.00          0.01          0.03          0.00 <br>##   EmotStab.bg    OpenExp.bg     Health.bg Depression.bg <br>##          0.02          0.02          0.01          0.01 <br>## Correlation between groups <br>##               Rmnt. DpRl. Brd.b Rflc. SvrP. SvrN. SvrT. AntP. AntN. AntT.<br>## Rumination.bg  1                                                         <br>## DepRelat.bg    1     1                                                   <br>## Brood.bg       1     1     1                                             <br>## Reflect.bg    -1    -1    -1     1                                       <br>## SavorPos.bg    1     1     1    -1     1                                 <br>## SavorNeg.bg   -1    -1    -1     1    -1     1                           <br>## SavorTot.bg    1     1     1    -1     1    -1     1                     <br>## AntPos.bg      1     1     1    -1     1    -1     1     1               <br>## AntNeg.bg     -1    -1    -1     1    -1     1    -1    -1     1         <br>## AntTot.bg      1     1     1    -1     1    -1     1     1    -1     1   <br>## MomPos.bg      1     1     1    -1     1    -1     1     1    -1     1   <br>## MomNeg.bg     -1    -1    -1     1    -1     1    -1    -1     1    -1   <br>## MomTot.bg      1     1     1    -1     1    -1     1     1    -1     1   <br>## RemPos.bg      1     1     1    -1     1    -1     1     1    -1     1   <br>## RemNeg.bg     -1    -1    -1     1    -1     1    -1    -1     1    -1   <br>## RemTot.bg      1     1     1    -1     1    -1     1     1    -1     1   <br>## LifeSat.bg    -1    -1    -1     1    -1     1    -1    -1     1    -1   <br>## Extravert.bg   1     1     1    -1     1    -1     1     1    -1     1   <br>## Agreeable.bg   1     1     1    -1     1    -1     1     1    -1     1   <br>## Conscient.bg   1     1     1    -1     1    -1     1     1    -1     1   <br>## EmotStab.bg   -1    -1    -1     1    -1     1    -1    -1     1    -1   <br>## OpenExp.bg     1     1     1    -1     1    -1     1     1    -1     1   <br>## Health.bg      1     1     1    -1     1    -1     1     1    -1     1   <br>## Depression.bg  1     1     1    -1     1    -1     1     1    -1     1   <br>##               MmPs. MmNg. MmTt. RmPs. RmNg. RmTt. LfSt. Extr. Agrb. Cnsc.<br>## MomPos.bg      1                                                         <br>## MomNeg.bg     -1     1                                                   <br>## MomTot.bg      1    -1     1                                             <br>## RemPos.bg      1    -1     1     1                                       <br>## RemNeg.bg     -1     1    -1    -1     1                                 <br>## RemTot.bg      1    -1     1     1    -1     1                           <br>## LifeSat.bg    -1     1    -1    -1     1    -1     1                     <br>## Extravert.bg   1    -1     1     1    -1     1    -1     1               <br>## Agreeable.bg   1    -1     1     1    -1     1    -1     1     1         <br>## Conscient.bg   1    -1     1     1    -1     1    -1     1     1     1   <br>## EmotStab.bg   -1     1    -1    -1     1    -1     1    -1    -1    -1   <br>## OpenExp.bg     1    -1     1     1    -1     1    -1     1     1     1   <br>## Health.bg      1    -1     1     1    -1     1    -1     1     1     1   <br>## Depression.bg  1    -1     1     1    -1     1    -1     1     1     1   <br>##               EmtS. OpnE. Hlth. Dprs.<br>## EmotStab.bg    1                     <br>## OpenExp.bg    -1     1               <br>## Health.bg     -1     1     1         <br>## Depression.bg -1     1     1     1   <br>## Correlation within groups <br>##               Rmnt. DpRl. Brd.w Rflc. SvrP. SvrN. SvrT. AntP. AntN. AntT.<br>## Rumination.wg  1.00                                                      <br>## DepRelat.wg    0.95  1.00                                                <br>## Brood.wg       0.88  0.78  1.00                                          <br>## Reflect.wg     0.80  0.63  0.59  1.00                                    <br>## SavorPos.wg   -0.20 -0.20 -0.18 -0.15  1.00                              <br>## SavorNeg.wg    0.43  0.43  0.36  0.30 -0.64  1.00                        <br>## SavorTot.wg   -0.36 -0.36 -0.31 -0.25  0.89 -0.92  1.00                  <br>## AntPos.wg     -0.06 -0.05 -0.08 -0.03  0.86 -0.49  0.73  1.00            <br>## AntNeg.wg      0.32  0.32  0.28  0.21 -0.54  0.89 -0.80 -0.50  1.00      <br>## AntTot.wg     -0.23 -0.23 -0.21 -0.15  0.78 -0.82  0.89  0.83 -0.89  1.00<br>## MomPos.wg     -0.26 -0.26 -0.22 -0.19  0.86 -0.60  0.80  0.60 -0.47  0.61<br>## MomNeg.wg      0.46  0.46  0.39  0.35 -0.51  0.88 -0.78 -0.33  0.66 -0.59<br>## MomTot.wg     -0.42 -0.42 -0.36 -0.32  0.75 -0.85  0.89  0.51 -0.65  0.68<br>## RemPos.wg     -0.20 -0.19 -0.17 -0.15  0.89 -0.56  0.79  0.66 -0.44  0.62<br>## RemNeg.wg      0.34  0.35  0.28  0.23 -0.65  0.87 -0.85 -0.49  0.69 -0.69<br>## RemTot.wg     -0.29 -0.30 -0.25 -0.21  0.85 -0.79  0.90  0.63 -0.62  0.72<br>## LifeSat.wg    -0.47 -0.47 -0.43 -0.31  0.54 -0.50  0.57  0.39 -0.33  0.41<br>## Extravert.wg  -0.20 -0.19 -0.11 -0.20  0.34 -0.35  0.38  0.21 -0.29  0.29<br>## Agreeable.wg  -0.18 -0.18 -0.20 -0.10  0.35 -0.45  0.45  0.28 -0.39  0.39<br>## Conscient.wg  -0.25 -0.30 -0.20 -0.10  0.24 -0.21  0.25  0.16 -0.14  0.17<br>## EmotStab.wg   -0.48 -0.44 -0.49 -0.34  0.34 -0.44  0.43  0.20 -0.33  0.32<br>## OpenExp.wg    -0.16 -0.14 -0.21 -0.10  0.37 -0.31  0.37  0.27 -0.27  0.31<br>## Health.wg      0.44  0.47  0.36  0.29 -0.30  0.34 -0.35 -0.21  0.26 -0.27<br>## Depression.wg  0.57  0.58  0.49  0.38 -0.44  0.55 -0.55 -0.27  0.39 -0.39<br>##               MmPs. MmNg. MmTt. RmPs. RmNg. RmTt. LfSt. Extr. Agrb. Cnsc.<br>## MomPos.wg      1.00                                                      <br>## MomNeg.wg     -0.56  1.00                                                <br>## MomTot.wg      0.86 -0.91  1.00                                          <br>## RemPos.wg      0.65 -0.42  0.59  1.00                                    <br>## RemNeg.wg     -0.55  0.63 -0.67 -0.65  1.00                              <br>## RemTot.wg      0.66 -0.58  0.69  0.91 -0.91  1.00                        <br>## LifeSat.wg     0.55 -0.55  0.62  0.48 -0.42  0.49  1.00                  <br>## Extravert.wg   0.39 -0.37  0.43  0.28 -0.25  0.29  0.27  1.00            <br>## Agreeable.wg   0.33 -0.43  0.43  0.31 -0.36  0.37  0.25  0.12  1.00      <br>## Conscient.wg   0.25 -0.16  0.22  0.23 -0.26  0.26  0.33  0.03  0.29  1.00<br>## EmotStab.wg    0.40 -0.50  0.51  0.27 -0.32  0.32  0.44  0.12  0.41  0.27<br>## OpenExp.wg     0.39 -0.26  0.36  0.30 -0.28  0.32  0.34  0.29  0.36  0.14<br>## Health.wg     -0.30  0.33 -0.36 -0.27  0.29 -0.31 -0.42 -0.10 -0.25 -0.24<br>## Depression.wg -0.45  0.56 -0.58 -0.41  0.49 -0.50 -0.65 -0.24 -0.29 -0.26<br>##               EmtS. OpnE. Hlth. Dprs.<br>## EmotStab.wg    1.00                  <br>## OpenExp.wg     0.24  1.00            <br>## Health.wg     -0.31 -0.18  1.00      <br>## Depression.wg -0.54 -0.28  0.56  1.00<br>## <br>## Many results are not shown directly. To see specific objects select from the following list:<br>##  mean sd n F ICC1 ICC2 ci1 ci2 r within pooled sd.r raw rbg pbg rwg nw pwg etabg etawg nwg nG Call<br></pre>
</div>
</div>
</div>
<p>The variance explained by gender is quite small for all of the variables. Instead, the relationships between the variables seem to be more meaningful.</p>
<p>A to Z is almost done! Just Y and Z, plus look for an A-to-Z-influenced Statistics Sunday post! </p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.deeplytrivial.com/2018/04/x-is-for-by.html"> Deeply Trivial</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/WTDMk-eMutc" height="1"></a></div></div>