library(tidyverse)
library(car)
library(lme4)Worksheet 8
Packages
Neurocognition in individuals with schizophrenia
A study was carried out to evaluate patterns and levels of performance on neurocognitive measures among individuals with schizophrenia and schizoaffective disorder using a well-validated, comprehensive neurocognitive battery specifically designed for individuals with psychosis.
The main interest was in determining how well these measures distinguished among all groups and whether there were variables that distinguished between the schizophrenia and schizoaffective groups. Age and sex were also measured for each individual, but we ignore those in our analysis.
Variables of interest, all quantitative except for the first one:
DxDiagnostic group, categorical with levelsSchizophreniaSchizoaffectiveControlSpeedSpeed of processing scoreAttentionAttention/Vigilance scoreMemoryWorking memory scoreVerbalVerbal Learning scoreVisualVisual Learning scoreProbSolvReasoning/Problem Solving scoreSocialCogSocial Cognition score
The clinical sample comprised 116 male and female patients who had a diagnosis of schizophrenia (\(n = 70)\) or schizoaffective disorder (\(n = 46\)) confirmed by a standard test.
Non-psychiatric control participants (\(n = 146\)) were screened for medical and psychiatric illness and history of substance abuse. Patients were recruited from three outpatient clinics in Hamilton, Ontario, Canada. Control participants were recruited through local newspaper and online classified advertisements for paid research participation.
The data are in http://ritsokiguess.site/datafiles/NeuroCog.csv.
- Read in and display (some of) the data.
- Why is this dataset suitable for a multivariate ANOVA analysis? Explain briefly.
- Create a suitable response variable for a MANOVA. Show the first few rows of your response variable. NOTE: if you display it all, all 242 rows will be displayed. Be careful.
- Run a suitable MANOVA using the
manovacommand, displaying the output.
- Run a suitable MANOVA using
Manovafrom thecarpackage, displaying the results.
- What are you able to conclude from your analyses? (The conclusion should be the same for both of them.)
- Carry out Box’s M test. What do you conclude from it?
- Make boxplots of all seven response variables against diagnosis (
Dx), on oneggplot. The best answer will display the graphs so that they are easy to read. Hint: the idea is the same as plotting residuals against all of the explanatory variables in a regression.
- Looking at your boxplots, why do you think your MANOVA came out significant, and what do your boxplots tell you about the relative test scores for patients with diagnoses of schizophrenia or schizoaffective?
The questions below are on repeated measures. We likely won’t get to the material for questions 14 and 15 this week; if we don’t, leave these questions for next week. (Assignment 6 won’t go any further than we go in lecture.)
You have intelligent rats
Each of 12 students trained rats to run a maze, and the number of successful runs (out of 50 attempts) was recorded on each of 5 days. Some of the students were told that the rats they were training were “bright” (intelligent) and some of them were told that their rats were “dull” (not intelligent). In actual fact, all the rats were from the same source, and none of them were any more intelligent than the others. Did it make a difference whether the students were told that their rats were intelligent on the number of mazes the rats successfully ran, and, if so, was the effect consistent over time? The same group of rats were trained by the same student throughout this experiment, so it makes sense to treat the data as repeated measures.
The data are in http://ritsokiguess.site/datafiles/intelligent-rats.csv. The columns of interest to us are:
Student: a numerical identifier for each studentTreatment: what the student was told about their ratsDay1throughDay5: the number of successful runs on each day.
There are some other variables that will not concern us here.
- Read in and display (some of) the data.
- Set up and run an appropriate repeated-measures ANOVA. What do you conclude from it? (Hint: set up the response variable, and go through the steps required to run the
Manova. Obtain the appropriate P-values, describing your process.)
- Draw a suitable interaction plot (for treatment and time). How does this clarify your conclusions of the previous part? (Hint: you’ll need longer data. If you want to be consistent with me, use
Dayfor the names of the days, andrunsfor the numbers of runs.)
- For each time point (day), run a simple effects analysis: that is, using an ordinary
aov, test whether the number of successful runs depends on whether the rat was labelled as “dull” or “bright”.
- Do a mixed model analysis (hint: use the long data that you made for your interaction plot.)
- Compare your findings from the mixed model to the ones from the
Manovaanalysis you did earlier.