|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|
|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,
> On 11/10/05, Tony Yang <firstname.lastname@example.org> 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.
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;
proc print data=dsn; run;
Univ. of Oregon