Professional Documents
Culture Documents
Data 1
Data 1
Data 1
1.
In the juul data set, fit a linear regression model for the square root of the IGF-I
concentration versus age to the group of subjects over 25 years old.
2.
In the malaria data set, analyze the log-transformed antibody level versus age. Make a plot
of the relation. Do you notice anything peculiar?
Answer is
library(ISwR)
attach(juul)
Summary(juul)
## Median :12.56 Median :1.0 Median :2.00 Median :314 Median :2.00
## imply :15.10 suggest :1.5 suggest :1.53 suggest :340 imply :2.64
## 3rd Qu.:16.86 3rd Qu.:2.0 3rd Qu.:2.00 3rd Qu.:463 3rd Qu.:5.00
## Max. :83.00 Max. :2.0 Max. :2.00 Max. :915 Max. :5.00
## testvol
## Min. : 1.0
## Median : 3.0
## mean : 7.9
## third Qu.:15.0
## Max. :30.0
## NA's :859
##
## Residuals :
## Coefficients:
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
library(ISwR)
attach(malaria)
##
## age
summary(malaria)
## 1st Qu.: 25.8 1st Qu.: 5.75 1st Qu.: 29 1st Qu.:0.00
## third Qu.: 75.2 3rd Qu.:12.00 3rd Qu.: 374 3rd Qu.:1.00
##
## call:
##
## Residuals:
##
## Coefficients:
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
Below
#The graph of log(Antibody level) vs Age appears to show a cyclic relationship between the two
variables in the Malaria dataset. There seem to spike approximately around ages 4, 6, and 11.