Question

In: Statistics and Probability

Need to construct ANOVA table in R using the below information We have five groups and...

Need to construct ANOVA table in R using the below information

We have five groups and three observations per group. The group means Exercise 3.4 are 6.5, 4.5, 5.7, 5.7, and 5.1, and the mean square for error is .75. Compute an ANOVA table using R for these data

Solutions

Expert Solution

## The R function


k=5 ## Number of treatment
n=3 ## Number of observation in each treatment

N=n*k # total observation
T.mean=c(6.5, 4.5, 5.7, 5.7, 5.1)
M=n*sum(T.mean)/N ## Mean of all N observations
M

SST=n*sum((T.mean-M)^2) ## Sum of square treatment
MSE=0.75 # Given, mean square for error is .75
dfT=k-1 # degree of freedom for Treatment
dfE=N-k # degree of freedom for Error
SSE=MSE*dfE ## Sum of square Error
TSS=SST+SSE

MSST=SST/dfT
MSSE=SSE/dfE

Sourse=c("Treatment", "Error")
df=c(dfT, dfE)
SS=c(SST, SSE)
MSS=c(MSST, MSSE)
FT=MSST/MSSE

F=c(FT, NA)
P=df(FT, dfT, dfE)
PF=c(P, NA)

## The ANOVA table is
data.frame(Sourse, df, SS, MSS, F, PF)

## End Function

#### Run

> k=5 ## Number of treatment
> n=3 ## Number of observation in each treatment
>
> N=n*k # total observation
> T.mean=c(6.5, 4.5, 5.7, 5.7, 5.1)
> M=n*sum(T.mean)/N ## Mean of all N observations
> M
[1] 5.5
>
> SST=n*sum((T.mean-M)^2) ## Sum of square treatment
> MSE=0.75 # Given, mean square for error is .75
> dfT=k-1 # degree of freedom for Treatment
> dfE=N-k # degree of freedom for Error
> SSE=MSE*dfE ## Sum of square Error
> TSS=SST+SSE
>
> MSST=SST/dfT
> MSSE=SSE/dfE
>
> Sourse=c("Treatment", "Error")
> df=c(dfT, dfE)
> SS=c(SST, SSE)
> MSS=c(MSST, MSSE)
> FT=MSST/MSSE
>
> F=c(FT, NA)
> P=df(FT, dfT, dfE)
> PF=c(P, NA)
>
> ## The ANOVA table is
> data.frame(Sourse, df, SS, MSS, F, PF)
Sourse df SS MSS F PF
1 Treatment 4 6.72 1.68 2.24 0.1220734
2 Error 10 7.50 0.75 NA NA


Related Solutions

unit anova (biostatistics) using R on the table below Oxygen consumption you will find the rate...
unit anova (biostatistics) using R on the table below Oxygen consumption you will find the rate of oxygen consumption of two species of limpets (Acmaea scabra & A. digitalis) in three different concentrations of salt water. The variable is given as μl O2/mg units per dry weight at 22°C. The researcher would like to know whether the rate of oxygen consumption differs between both species and the different concentrations of salt water. Coding in Oxygen consumption: Species 1 = Acmaea...
Using R, conduct an ANOVA to see if there are differences in weight between two groups...
Using R, conduct an ANOVA to see if there are differences in weight between two groups of monkeys. What is null hypothesis conclusion with evidence. Conduct a post-hoc MCP (use TukeyHSD) to see which means are different. What do the outputs lwr and upr mean? The numbers are monkey group 1= 9.7, 9.2, 9.5, 9.5, 10.9, 9.8, 8.7, 7.9, 9.8, 9, 10.5, 8.9, 10, 8.9, 6.8, 9.3, 8.2, 8.5, 9.4, 10.5 Monkey group 2= 8.1, 7.8, 7.6, 9.9, 8.1, 9.1,...
Complete an ANOVA test using the 3 sets of scores for 3 groups from the information/...
Complete an ANOVA test using the 3 sets of scores for 3 groups from the information/ numbers found below. Is it statistically possible for the researchers/ investigators of this study to form a conclusion that there are significant differences between any of the 3 groups with alpha space= 0.05? Complete 5 step hypothesis test, show all of your answers in the ANOVA summary table in step 2. All answers rounded two decimal. Group Alpha: 10, 7, 6, 9, 8 Group...
Construct a truth table for the statement [q∨(~r∧p)]→~p. Complete the truth table below by filling in...
Construct a truth table for the statement [q∨(~r∧p)]→~p. Complete the truth table below by filling in the blanks. (T or F) p q r ~r ~r∧p q∨(~r∧p) ~p [q∨(~r∧p)]→~p T T T T T F T F T T F F
We are conducting a one-way between groups ANOVA. We have 50 people in each condition. Each...
We are conducting a one-way between groups ANOVA. We have 50 people in each condition. Each person rates how much they like their assigned food (pizza, burger, or taco) on a scale of 1 to 5 (1 = hate this food, 5 = favorite food ever). We run a hypothesis test and find a significant statistic. What does this mean? Calculate all the appropriate HSDs for the following groups: Pizza Mean: 2.3; Burger Mean: 4.5; Taco Mean: 3.7; Standard Error...
. Given the following information obtained from three normally distributed populations, construct an ANOVA table. (Round...
. Given the following information obtained from three normally distributed populations, construct an ANOVA table. (Round intermediate calculations to at least 4 decimal places. Round "SS" to 2 decimal places, "MS" to 4 decimal places, and "F" to 3 decimal places.) SSTR = 286.3; SSE = 2,785.8; c = 3; n1 = n2 = n3 = 10 b. At the 5% significance level, what is the conclusion to the ANOVA test of mean differences? Do not reject H0; we cannot...
a. Given the following information obtained from three normally distributed populations, construct an ANOVA table. (Round...
a. Given the following information obtained from three normally distributed populations, construct an ANOVA table. (Round intermediate calculations to at least 4 decimal places. Round "SS" to 2 decimal places, "MS" to 4 decimal places, and "F" to 3 decimal places.) SSTR = 251.3; SSE = 2,449.5; c = 3; n1 = n2 = n3 = 10 b. At the 10% significance level, what is the conclusion to the ANOVA test of mean differences? Do not reject H0; we cannot...
Use the information in the table below to construct an income statement for 2015 and balance...
Use the information in the table below to construct an income statement for 2015 and balance sheets for 2014 and 2015.  Then, find Operating Cash Flow, change in Net Working Capital, Net Capital Spending, Cash Flow to Creditors, Cash Flow to Shareholders, and Free Cash Flow.  The tax rate is 34% and the plowback ratio is 60%. 2014 2015 Sales 1700 Costs of Goods Sold 650 Depreciation Expense 200 Interest Expense 75 Total Fixed Assets 2200 3300 Accumulated Depreciation 400 Can be...
Use the information in the table below to construct an income statement for 2015 and balance...
Use the information in the table below to construct an income statement for 2015 and balance sheets for 2014 and 2015.  Then, find Operating Cash Flow, change in Net Working Capital, Net Capital Spending, Cash Flow to Creditors, Cash Flow to Shareholders, and Free Cash Flow.  The tax rate is 34% and the plowback ratio is 60%. 2014 2015 Sales 1700 Costs of Goods Sold 650 Depreciation Expense 200 Interest Expense 75 Total Fixed Assets 2200 3300 Accumulated Depreciation 400 Can be...
Using all the data below, construct an empirical model using a computational tool (matlab, or R,...
Using all the data below, construct an empirical model using a computational tool (matlab, or R, any preferred). explain your model. Data Description: These data are from a NIST study involving calibration of ozone monitors. The response variable (y) is the customer's measurement of ozone concentration and the predictor variable (x) is NIST's measurement of ozone concentration. MATLAB Row Vectors: xLst = [0.2, 337.4, 118.2, 884.6, 10.1, 226.5, 666.3, 996.3, 448.6, 777.0, 558.2, 0.4, 0.6, 775.5, 666.9, 338.0, 447.5, 11.6,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT