All the component parts we have just written in the exercises above can be brought together to make a reasonable draft of a statistical report. There is a lot of variability in how to structure the reporting of statistical analyses, for instance you may be using the same model to test a selection of different hypotheses.
The answers contained within the solution box below is just an example. While we hope it is useful for you when you are writing your report, it should not be taken as an exemplary template for a report which would score 100%.
We have also included the RMarkdown file used to create this, which may be useful to see how things such as formatting and using inline R code can be used.
You can find find the .Rmd file for the draft below at https://uoepsy.github.io/files/mlr_writeup_example.Rmd.
Why not try downloading and compiling it to see how it works?
PLEASE NOTE: A weird issue with hosting .Rmd files like this means that when you download it, it will remove the top bit of meta-data (i.e., the bit which includes author, title etc) meaning it will not compile without a small amount of editing. You can see the .Rmd file more clearly including these first 6 lines here.
Data was obtained from https://uoepsy.github.io/data/scs_study.csv: a dataset containing information on 656 participants, including Z-scores on the 5 personality traits assessed by the Big-Five Aspects Scale (BFAS) (Openness, Conscientiousness, Extraversion, Agreeableness and Neuroticism). Participants were also assessed on the Social Comparison Scale (SCS), which is an 11-item scale measuring self-perception (relative to others) of social rank, attractiveness and belonging, and the Depression Anxiety and Stress Scale (DASS-21) - a 21 item measure with higher scores indicating higher severity of symptoms. For both of these measures, only total scores are available. Items in the SCS are measured on a 5-point scale, giving minimum and maximum possible scores of 11 and 55 respectively. Items in the DASS-21 are measured on a 4-point scale, meaning that scores can range from a possible 21 to 84.
All participant data was complete (no missing values), with scores on the SCS and the DASS-21 all within possible ranges (see Table 3). Bivariate correlations show a moderate negative relationship between DASS-21 and SCS scores; a moderate positive relationship between DASS-21 and Neuroticism, and a weak positive correlation between SCS and Neuroticism. Additionally, a strong positive relationship is evident between Extraversion and Agreeableness (see Figure 4).
Table 3: SCS and DASS-21 descriptive statistics
|
n
|
mean
|
sd
|
min
|
max
|
scs
|
656
|
35.77
|
3.53
|
27
|
54
|
dass
|
656
|
44.72
|
6.76
|
23
|
68
|
Analysis
To investigate whether, when controlling for other personality traits, neuroticism moderates the effect of social comparison on symptoms of depression, anxiety and stress, total scores on the DASS-21 were modelled using multiple linear regression. The Z-scored measures on each of the big-five personality traits were included as predictors, along with scores on the SCS (Z-scored) and its interaction with the measure of Neuroticism. Effects will be considered statistically significant at \(\alpha = 0.01\). One observation was excluded from the final analysis as it was judged to be too influential on the model (Cook’s Distance = 2.66).
The final model was fitted to the remaining 655 observations, and took the form:
\[
\text{DASS-21} = \beta_0 + \beta_1 \text{O} + \beta_2 \text{C} + \beta_3 \text{E} + \beta_4 \text{A} + \beta_5 \text{N} + \beta_6 \text{SCS} + \beta_7 \text{SCS} \cdot \text{N} + \epsilon \\
\begin{align}
\text{Where} \\
& \text{O = Openness} \\
& \text{C = Conscientiousness} \\
& \text{E = Extraversion} \\
& \text{A = Agreeableness} \\
& \text{N = Neuroticism} \\
\end{align}
\]
To address the research question of whether neuroticism moderates the effect of social comparison on depression and anxiety, we will consider the hypothesis test that the interaction coefficient is equal to zero, where:
\(H_0: \beta_7 = 0\). The interaction between SCS and Neuroticism is equal to zero.
\(H_1: \beta_7 \neq 0\). The interaction between SCS and Neuroticism is not equal to zero.
The regression model met assumptions of linearity (see plot of model residuals vs fitted values, Figure 5), homoscedasticity (non-constant variance test indicated no evidence against the null hypothesis that the error variance is constant across level of the response, \(\chi^2(1)\)=1.51, \(p\)=0.219), independence of errors (Durbin-Watson test for autocorrelation of residuals: \(DW\)=2.08, \(p\)=0.33), and normality of error term (Shapiro-Wilk test indicated no evidence against the null hypothesis that the residuals were drawn from a normally distributed population: \(W\)=1, \(p\)=0.762).
Results
Results showed a significant conditional association between SCS scores (Z-scored) and DASS-21 Scores (\(\beta\) = 44.98,SE = 0.23, p <.01), suggesting that for those at the mean level of neuroticism, scores on the DASS-21 decrease by 44.98 for every 1 standard deviation increase in SCS scores. A significant conditional association was also evident between Neuroticism (Z-scored) and DASS-21 Scores (\(\beta\) = -1.94,SE = 0.23, p <.01), suggesting that for those who score the mean on the SCS, scores on the DASS-21 increase by -1.94 for every 1 standard deviation increase in neuroticism.
Crucially, the association between social comparison and symptoms of depression and anxiety was found to be dependent upon the level of neuroticism, with a greater negative association between the two for those with high levels of neuroticism (\(\beta\) = -2.77,SE = 0.24, p <.01). This interaction is visually presented in Figure 6.
The F-test for model utility was significant (F(7,647)=35.76, p<.001), with the model explaining approximately 27.1% of the variability in DASS-21 Scores. Full regression results including 95% Confidence Intervals are shown in Table 4.
The results presented here indicate that the association between social comparison and depression and anxiety may depend upon individuals’ levels of neuroticism, with perceived social rank perhaps leading to more symptoms of depression and anxiety for highly neurotic individuals. However, it is important to note that we can make no claims on the directions of these associations from these data - it may be that social comparison leads to more depression and anxiety in neurotic individuals, but also consistent is the view that - for these individuals - higher levels of depression leads to a greater reduction in perceived social rank.
Table 4: Regression table for DASS-21 model. Outcome variable is raw total score on DASS-21, all predictors are Z-scored
|
DASS-21
|
Predictors
|
Estimates
|
CI
|
p
|
(Intercept)
|
44.98
|
44.53 – 45.42
|
<0.001
|
Social Comparison Scale
|
-1.94
|
-2.39 – -1.49
|
<0.001
|
Neuroticism
|
1.42
|
0.97 – 1.86
|
<0.001
|
Openness
|
-0.31
|
-0.75 – 0.12
|
0.155
|
Conscientiousness
|
0.09
|
-0.35 – 0.53
|
0.685
|
Extraversion
|
0.53
|
-0.15 – 1.20
|
0.124
|
Agreeableness
|
0.34
|
-0.33 – 1.01
|
0.324
|
Social Comparison Scale : Neutoricism
|
-2.77
|
-3.24 – -2.29
|
<0.001
|
Observations
|
655
|
R2 / R2 adjusted
|
0.279 / 0.271
|