[1] 2800 28
The psych package is a general-purpose toolbox for psychological, psychometric, and personality research.
Main functions I will show: - describe() - alpha() - fa()
bfi)psych package built-in dataset.This dataset is included as a demonstration set for scale construction and factor analysis. These include personality data like bfi, mood scales such as msq, ability test scores like sat.act
The bfi data includes 25 personality items plus some demographic variables, so I will focus on the personality items only.
vars n mean sd median trimmed mad min max range skew kurtosis se
A1 1 2784 2.41 1.41 2 2.23 1.48 1 6 5 0.83 -0.31 0.03
A2 2 2773 4.80 1.17 5 4.98 1.48 1 6 5 -1.12 1.05 0.02
A3 3 2774 4.60 1.30 5 4.79 1.48 1 6 5 -1.00 0.44 0.02
A4 4 2781 4.70 1.48 5 4.93 1.48 1 6 5 -1.03 0.04 0.03
A5 5 2784 4.56 1.26 5 4.71 1.48 1 6 5 -0.85 0.16 0.02
Usingdescribe() we can quickly obtain descriptive statistics for multiple personality items at once, which makes it easy to explore the basic properties of the Big Five scales in the bfi dataset.
Some items ( A1 ) were negatively correlated with the first principal component and
probably should be reversed.
To do this, run the function again with the 'check.keys=TRUE' option
raw_alpha std.alpha G6(smc) average_r S/N ase mean
0.4314561 0.4586749 0.5321028 0.1449072 0.8473189 0.01628817 4.216732
sd median_r
0.7368514 0.3213122
alpha() reports Cronbach’s alpha, which is one of the most common measures of internal consistency reliability.
This helps us check whether the Agreeableness items behave like one coherent scale.
Loadings:
MR2 MR1 MR3 MR5 MR4
A1 -0.410
A2 0.615
A3 0.637
A4 0.423
A5 0.533
C1 0.536
C2 0.647
C3 0.550
C4 -0.607
C5 -0.553
E1 -0.574
E2 -0.680
E3 0.540
E4 0.645
E5 0.501
N1 0.769
N2 0.748
N3 0.734
N4 0.585
N5 0.541
O1 0.496
O2 -0.453
O3 0.590
O4
O5 -0.536
MR2 MR1 MR3 MR5 MR4
SS loadings 2.690 2.442 1.975 1.783 1.479
Proportion Var 0.108 0.098 0.079 0.071 0.059
Cumulative Var 0.108 0.205 0.284 0.356 0.415
Using psych::fa(), we can see that the observed items do in fact cluster into the expected Big Five structure in this real dataset.