Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please solve this problem using R program, provide the code and output, again so

ID: 3580024 • Letter: P

Question

Please solve this problem using R program, provide the code and output, again solve it with R The data called ”plasma” from Anderson et al. (1981) consists of measurements of plasma concentrations in micromols/liter from 10 subjects at times of 8 am, 11am, 2 pm, 5 pm, and 8 pm. Answer the following questions using R.

(a) Restructure the data into a 50 by 3 matrix form first so that you can capture the individual characteristics.

(b) Analyze the data in a 1-way ANOVA model.

data is

93      121     112     117     121

116     135     114     98      135

125     137     119     105     102

144     173     148     124     122

105     119     125     91      133

109     83      109     80      104

89      95      88      91      116

116     128     122     107     119

151     149     141     126     138

137     139     125     109     107

Explanation / Answer

By using r software we can analyse data.

Null and alternative hypothesis

H0 :µ1= µ2= µ3= µ4 Vs Ha : at least one of the mean is different.

R codes and output.

data2<-read.csv(file.choose(),header = T)
> head(data2)
plasma time
1 93 am8
2 116 am8
3 125 am8
4 144 am8
5 105 am8
6 109 am8
> attach(data2)
The following object is masked _by_ .GlobalEnv:

plasma

> anova<-aov(formula = plasma~time,data = data2)
> summary(anova)
Df Sum Sq Mean Sq F value Pr(>F)
time 4 2804 701.0 1.984 0.113
Residuals 45 15901 353.4

P value > 0.05 we do not reject null hypothesis.