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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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