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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1585 views
  • 0 likes
  • 1 in conversation