a.The population of interest is 5- 15 yr old children. The sample is 160 children.
b.The results cannot be generalized to the population for two reasons:
1. The sample size is too small.
2. the age is not relevent to this casual relationship.
a.Randomized controlled study
b.treatment group are those exercise twice a week. control groups are not exercise.
c.Yes, the blocking variable is the age.
d.no
e.no, we can not conclude a casual relationship since blining was not used.
f.yes, need to know more about the sample size.
scores<- c(57, 66, 69, 71, 72, 73, 74, 77, 78, 78, 79, 79, 81, 81, 82, 83, 83, 88, 89, 94)
boxplot(scores)
a.not independent, since there is a correlationship between transplant and survival time.
b.it shows the tranplant help to extend survial time.
c.
# install.packages("openintro")
library(openintro)
## Please visit openintro.org for free statistics materials
##
## Attaching package: 'openintro'
## The following objects are masked from 'package:datasets':
##
## cars, trees
treatmentgroup <- subset(heartTr, transplant == 'treatment')
controlgroup <- subset(heartTr, transplant == 'control')
prop.table(table(treatmentgroup$survived))
##
## alive dead
## 0.3478261 0.6521739
prop.table(table(controlgroup$survived))
##
## alive dead
## 0.1176471 0.8823529