Using %NLINMIX MACRO to analyze hierarchical structure data set

Reply
Occasional Contributor
Posts: 5

Using %NLINMIX MACRO to analyze hierarchical structure data set

I am using %NLINMIX MACRO to analyze a data set with hierarchical structure and I want to include some variables in the data set as random variables in the model statement, what should I do?

Super User
Posts: 21,469

Re: Using %NLINMIX MACRO to analyze hierarchical structure data set

Posted in reply to EBELE2015

Consider posting this in Statistical Procedures.

25032 - %NLINMIX macro to fit nonlinear mixed models


Also, the NLINMIX macro page helpfully points out that NLMIXED procedure exists as of SAS 8 so you may not need the macro.

The NLMIXED procedure does have the RANDOM statement as well.

SAS/STAT(R) 9.2 User's Guide, Second Edition

Occasional Contributor
Posts: 5

Re: Using %NLINMIX MACRO to analyze hierarchical structure data set

NLMIXED can handle only one random statement. It cannot handle hierarchical structured data set with multiple random statements.

Respected Advisor
Posts: 2,655

Re: Using %NLINMIX MACRO to analyze hierarchical structure data set

Posted in reply to EBELE2015

Definitely time for an upgrade to at least SAS/STAT13.2.  The documentation now includes Example 70.7 Overdispersion Hierarchical Nonlinear Mixed Model, which fits a two level (animal and sample within animal) hierarchical model.

Steve Denham

Occasional Contributor
Posts: 5

Re: Using %NLINMIX MACRO to analyze hierarchical structure data set

Posted in reply to SteveDenham

In my analysis using NLINMIX macro, I discovered that when modeling repeated measured data set with hierarchical structure, for example, school within city, city within state and state within region, your RANDOM statement should be expressed as follows:

Class state city school;

     model pseudo_y = d_x1 d_x2 ... + cityeffect  + stateeffect / noint notest solution cl;

     random d_cityeffect / subject=city(state);

     random d_stateeffect / subject=state;

     )

)

run;

New User
Posts: 1

Re: Using %NLINMIX MACRO to analyze hierarchical structure data set

Posted in reply to EBELE2015
How can I analyze a nonlinear split-plot design model? I am so confused on how to go about it. This problem has been hindering me from graduating. Please help. Email: ikwuoche8@gmail.com
Ask a Question
Discussion stats
  • 5 replies
  • 546 views
  • 0 likes
  • 4 in conversation