Question: Question 1 In the computer lab you considered ways to model the growth of 30 pigs through time.The following questions relate to a different set

Question 1

In the computer lab you considered ways to model the growth of 30 pigs through time.The following questions relate to a different set of 18 pigs. The issues considered are the same as those considered in the computer lab. The models to consider are of the same form ie linear-linear models where we use time (measured in weeks) to explain pig weight.Reflecting my limited ability to come up with file names the data is in the pigwt2 data file.

  1. For the data set estimate a pooled simple linear regression model that ignores the fact that we have repeat measures on individual pigs. For this model conduct a reset test to check for functional form. Does the model fail this functional form test. If it fails answer yes, it the model does not fail answer no. (This is quiz question 1). (Marks 0.5)

  1. Using appropriate methods compare the random intercept model, the random slope model, and the random slope and random intercept model. (These are the same models considered in the computer lab). Decide which of these three models is the most appropriate model (At this stage do not consider the issue of heteroskedasticty and autocorrelation). You select the correct option from the list of options presented. (This is quiz question 2). (Marks 0.5)

  1. For the model you decide is most appropriate as part of Question 1 part (ii), first test to see whether you need to consider an AR(1) process for the error terms; and second, consider whether you need to allow for heteroskedasticty in the model, where, as is the computer lab, the heteroskedasticty is related to the fitted values. For the model that you decide is most appropriate, what is the point estimate for the slope. Report the value to THREE decimal places. (This is quiz question 3). Note you may need to usectrl <- lmeControl(opt='optim') to reset the nlme settings so that the model estimates. Check the relevant section of the example script files for how to implement this (Marks 0.5)
id.numnum.weeksweight
1124.5
1230
1338.5
1442
1547.5
1654
1762.5
1871.5
1977
2124.5
2231.5
2340.5
2446.5
2551.5
2661.5
2768.5
2877.5
2984.5
3124.5
3232
3339
3445
3551
3655.5
3761.5
3869
3975.5
4124
4232.5
4340
4448
4554.5
4661.5
4768
4874.5
4981
5124
5231.5
5338.5
5444
5551.5
5657.5
5764
5872.5
5979
6124.5
6232.5
6339.5
6444.5
6552.5
6656.5
6762
6867.5
6972.5
7124.5
7232
7338.5
7444
7550
7656
7763.5
7869.5
7976
8125.5
8233
8341.5
8447
8555.5
8660.5
8766.5
8877
8982
9125.5
9232
9339
9445.5
9551
9657.5
9763.5
9872
9978.5
10125
10231
10336.5
10443
10550.5
10655
10762.5
10869
10975.5
11126.5
11230.5
11333
11439
11543.5
11649.5
11756.5
11861
11965
12124
12232
12339
12444.5
12550
12656
12763
12867.5
12974
13124.5
13231
13337.5
13443.5
13548
13656
13762.5
13866.5
13970.5
14127
14234.5
14342
14448.5
14553
14660
14767
14873
14976
15131
15239
15347.5
15451
15557
15664
15771
15877
15980.5
16127
16233.5
16340
16446.5
16553
16660
16766.5
16872.5
16980
17129.5
17237
17346
17452.5
17560
17667.5
17776
17881.5
17988
18128.5
18236
18342.5
18449
18555
18663.5
18772
18878.5
18985.5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock