BookmarkSubscribeRSS Feed
boban
Calcite | Level 5

Hi,

I’m using proc nlmixed to analyse a data set with nested random effects. Ontsurv is the binary response variable, and is nested under both mom and dad (class variables). I used the following program but it doesn’t seem to work.

 

proc nlmixed data = final Qpoints = 2;

array aeffect { 1 };

array beffect { 1 };

vara = exp(2*logsiga);

varb_a = exp (2*logsigb_a);

mean = intercept + aeffect {1} + beffect {dad};

parms B0 = 10 V_u0 = 80;

logodds = B0 +u0j;

odds = exp (logodds);

P = odds/(1+odds);

model ontsurv ~ binary(p);

random aeffect1 beffect1 ~

normal ( [0,0],

         [vara,

            0, varb_a] ) subject = mom;

estimate 'var[mom]     ' vara;

estimate 'var[dad (mom)] ' varb_a;

run;

 

Does anyone know how to fix the problem, either by changing the syntax or with a good reference that I could look into?

Cheers,

B

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 1375 views
  • 0 likes
  • 1 in conversation