HASTS 412 Assignment-2
HASTS 412 Assignment-2
November 2023
Time : ??? hours
A1. In a study to evaluate weight loss programs (prog), 62 male subjects were recruited to
participate and were randomly assigned to maintain their current eating and exercise
habits (Control), or to follow a rigorous program of modified diet and exercise (Exer-
cise). All participants were weighed at baseline (month 0) and then again at months
3, 6, 9, and 12. An analyst considered a different linear average trend in time for each
of the programs. Further, a random intercept was used to account for the correlation
between repeated measurements in time.
(a) Using symbols for fixed effects, random effects, and residual error terms, write
down two expressions (i.e., one for each program) describing the trend of weight
loss in the two programs. Please use clear notation, making sure that all symbols
used are defined. [6]
(b) The analyst fitted the intended model in R and provided the following output
> summary(fitM1)
Linear mixed-effects model fit by maximum likelihood
Data: tmpDat
AIC BIC logLik
2595.618 2618.037 -1291.809
Random effects:
Formula: ~1 | id
(Intercept) Residual
StdDev: 18.09413 12.17425
page 1 of 2
HASTS 412
(i) Based on the output, write two explicit expression for the estimated popula-
tion average trends in each of the programs. [3]
(ii) Make an appropriately labelled sketch of the average trends in the two pro-
grams based on your results in b(i). Comment on your plot. [3]
(iii) Use the output above and any other relevant information to verify that the
data collected is balanced longitudinal data. [2]
(iv) Provide an estimate of the correlation between any two values within a subject
over time. [4]
(c) The analyst claimed that the slopes were actually similar between the two groups,
and provided output for another model that was considered
> summary(fitM2)
Linear mixed-effects model fit by maximum likelihood
Data: tmpDat
AIC BIC logLik
2897.008 2915.691 -1443.504
Random effects:
Formula: ~1 | id
(Intercept) Residual
StdDev: 16.00934 22.44341
END OF ASSIGNMENT.
page 2 of 2