Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, could you help me to figure out the RStudio lab? I tried but could not complete each step as expected. For decades it's been

Hello, could you help me to figure out the RStudio lab? I tried but could not complete each step as expected.

For decades it's been suspected that schizophrenia involves anatomical abnormalities in the hippocampus, an area of the brain involved with memory. The following data bearing on this issue are from Suddath et al. (1990) and were used by Ramsey and Schafer (3rd ed., 2013, p. 31. Display 2.2). The researchers obtained MRI measurements of the volume of the left hippocampus from 15 pairs of identical twins discordant for schizophrenia, i.e, one the twin is affected with schizophrenia The data are displayed in the following table. ### Do not delete this code chunk ```{r} # another way to load a small data set using `read.table()` schizophrenia <- read.table(header = T, text=" pair affected unaffected 1 1.27 1.94 2 1.63 1.44 3 1.47 1.56 4 1.39 1.58 5 1.93 2.06 6 1.26 1.66 7 1.71 1.75 8 1.67 1.77 9 1.28 1.78 10 1.85 1.92 11 1.02 1.25 12 1.34 1.93 13 2.02 2.04 14 1.59 1.62 15 1.97 2.08 ") is.data.frame(schizophrenia) # check if object `schizophrenia` is a valid data frame str(schizophrenia) schizophrenia ```

i. use `mutate()` to create a new variable `diff` which is the difference of the MRI measurements of each pair.

ii. use the pipe `%>%` operator add the new variable `diff` as a column to `schizophrenia`.

iii. use `summarise` to compute the average difference of the MRI measurements. Use the pipe `%>%` operator to string multiple functions.

iv. use `summarise` to compute the standard deviation of the difference of the MRI measurements. Use the pipe `%>%` operator to string multiple functions.

v. based on your answers in (iii) and (iv), do you think there is evidence in favor of the initial hypothesis there is a difference in the MRI measurements of the volume of the left hippocampus between those affected and unaffected with schizophrenia?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Options Futures And Other Derivatives

Authors: John C. Hull

4th Edition

0130224448, 9780130224446

More Books

Students also viewed these Finance questions

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

13.1 Explain the strategic role of employee benefits.

Answered: 1 week ago