Question: About 500 children were randomized into four nutritional groups: calorie, milk, meat, and control. The 0-1 variable malaria shows whether a child had malaria. The

About 500 children were randomized into four nutritional groups: calorie, milk, meat, and control. The 0-1 variable malaria shows whether a child had malaria. The dummy variable boy indicates a child's gender. The variable month is time in months elapsed since recruitment. The sin variable should be interpreted as sin(2 month/12), and cos should be similarly interpreted. The three dummy variables, calorie, meat, milk, identifies the group into which a child was randomized. We consider the following logit model. = 0 + 1baselineAge + 2Boy + 3 sin +4 cos +slopegrp month (1) Here, slopegrp signifies a group-dependent slope. That is, aside from seasonal cycles, there is a linear temporal trend within each nutritional group. To put it in still another way, your model should contain a common intercept but 4 distinct slopes.(with SAS) 1. Fit a random intercept logit model according to equation (1). using proc glimmix, would this set up the model correctly? I'm not sure if my model statement is correct proc glimmix data=one method=quad(qpoints=21) noclprint ; class id; model malaria (descending) = age_baseline boy sin cos calorie*month meat*month milk*month / s dist=binary link=logit; random intercept / s sub=id type=un; run;

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

Students Have Also Explored These Related Mathematics Questions!