LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 10 Nov 2005 17:53:13 -0600
Reply-To:   Robin High <robinh@UNLSERVE.UNL.EDU>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Robin High <robinh@UNLSERVE.UNL.EDU>
Subject:   Re: Interaction in ZIP model
Comments:   To: Tony Yang <tonyyangsxz@gmail.com>
In-Reply-To:   <f00d287f0511101023m3acbf4c6te03dbe17523a553d@mail.gmail.com>
Content-Type:   TEXT/PLAIN; charset=US-ASCII

> I want to change one error in the posting, all the covariates for > interaction are nominal variables. > Sorry for this and thanks in advance for your suggestions. > Best regards, > Tony > > On 11/10/05, Tony Yang <tonyyangsxz@gmail.com> wrote: > > > > Dear Listers; > > I am trying to fit a ZIP model, and want to include one interaction term > > in the model, while the interacted covariates are both dummy variables, then > > how should I do for this kind of case? It seems the proc nlmixed do not have > > CLASS statement? > > Any idea will be highly appreciated, thanks in advance. > >

Tony,

One way to get dummy coded nominal data and interactions with continuous covariates to enter into NLMIXED is to make a new dataset with GLMMOD, as shown below. If there are other variables (such as id) or pure numeric data you can include them on the model statement as well.

ODS OUTPUT designpoints=dsn; ODS EXCLUDE designpoints;

PROC GLMMOD DATA=one; CLASS group ; MODEL y = subject group x group*x; run;

proc print data=dsn; run;

Robin High Univ. of Oregon


Back to: Top of message | Previous page | Main SAS-L page