Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.
Running Code
When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:
#doesn’t hurt to check, still new at this.
edited DF
vars
n
mean
sd
median
trimmed
mad
min
max
range
skew
kurtosis
se
MPQ_POSITIVE_EMOTIONALITY
1
166
56.61
8.14
58.51
57.31
8.11
29.79
70.82
41.02
-0.74
0.22
0.63
MPQ_NEGATIVE_EMOTIONALITY
2
166
46.45
9.26
44.58
45.31
9.05
34.41
83.90
49.49
1.15
1.40
0.72
MPQ_CONSTRAINT
3
166
49.39
7.93
50.48
49.77
8.23
24.12
65.04
40.92
-0.44
-0.09
0.62
Original DF
vars
n
mean
sd
median
trimmed
mad
min
max
range
skew
kurtosis
se
MPQ_POSITIVE_EMOTIONALITY
1
501
56.67
8.13
58.51
57.39
8.11
29.79
70.82
41.02
-0.75
0.25
0.36
MPQ_NEGATIVE_EMOTIONALITY
2
501
46.47
9.21
44.58
45.32
9.05
34.41
83.90
49.49
1.15
1.44
0.41
MPQ_CONSTRAINT
3
501
49.45
7.92
50.48
49.85
8.23
24.12
65.04
40.92
-0.45
-0.08
0.35
Mean Personality By Total Weapon Use
total_weapon_use
n
Mean Positive Emotionality
Mean Negative Emotionality
Mean Contstraint
0
30
57.21
46.84
50.11
1
60
56.88
45.78
50.24
2
44
56.16
46.62
48.76
3
24
57.48
47.29
47.53
4
7
50.69
47.10
48.50
6
1
63.29
42.55
56.03
there is a slight difference in means. this is caused by one of the participants being recorded as both an officer and a civilian. I am going to remove this participant
weapon use has uneven groups.
Recoded Mean Personality By Total Weapon Use
total_weapon_use
n
Mean Positive Emotionality
Mean Negative Emotionality
Mean Contstraint
0
30
57.21
46.84
50.11
1
60
56.88
45.78
50.24
2
44
56.16
46.62
48.76
3
32
56.18
47.10
48.01
binary outcome variable creation
Replication Results
Estimate
Std. Error
z value
Pr(>|z|)
(Intercept)
3.958
1.444
2.740
0.006
MPQ_POSITIVE_EMOTIONALITY
-0.017
0.016
-1.053
0.292
MPQ_NEGATIVE_EMOTIONALITY
-0.012
0.013
-0.854
0.393
MPQ_CONSTRAINT
-0.028
0.015
-1.827
0.068
SAMPLEOfficer
1.727
0.331
5.217
0.000
here are the authors’ results… verify them in attached pdf.
Original Findings
Personality_Factors
b
SE
Positive Emotionality
-0.024
0.014
Negative Emotionality
0.003
0.012
Constraint
-0.022
0.015
Let’s explore the MPQ more.
this person (cite) found that MPQ can be used to measure antisocial traits. The sub-factors associated with these findings are intuitive. I’m. going to use are Aggression, Social Potency, Alienation, Low social closeness and low harm avoidance.
But first, lets verify that creating a new super factor is possible with the current data. The MPQ sub factors are standardized, so I should be able to find the mean score across sub factors constituting super factors, and check these against the original to ensure this is a viable strategy
Correlations between the super factors that I calculated and the original super factors. Now, I’ll build a new superfactor based on the literature of correlated traits.
Low social closeness and low harm avoidance are associated with antisocial traits. The current scale measures high harm avoidance and high social closeness. Because these are standardized scores, I can subtract the scores from 100 to approximate being low in the trait in question. I do this with harm avoidance, social closeness, and stress reaction.
Now, I calculate each participant’s average score across these traits.
There is no indication of severe multi-colinearity. The highest correlation is constraint at -0.55
Now, I’m going to re run the first analysis including this new super factor.