turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- General Programming
- /
- Using %NLINMIX MACRO to analyze hierarchical struc...

Topic Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-07-2015 12:42 PM

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?

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to EBELE2015

05-07-2015 01:20 PM

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.

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

05-07-2015 01:30 PM

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

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to EBELE2015

05-08-2015 11:06 AM

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

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to SteveDenham

05-08-2015 03:45 PM

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;

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to EBELE2015

02-11-2018 07:56 PM

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