| To: | Splus Mailing list <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | Removing Intercept in lme |
| From: | Carole Birrell <cbirrell@uow.edu.au> |
| Date: | Fri, 25 Jul 2003 11:03:46 +1000 |
|
Dear all,
I have been trying to remove the column of 1's which are automatically generated in the model matrix for the fixed effects terms in the lme procedure. Referring to book by Pinheiro and Bates, "Mixed Effects models in Splus", page18 says to put a "-1" in the fixed effects formula statement. This seems to change the first coefficient name from intercept to my named variable "sfd" but it doesn't seem to change the underlying model matrix and hence values of the fixed effects remain the same. Alternatively, is there any way I can specify the model matrix directly? I am using Splus 6.1 with WindowsXP. My model formula is shown below with the relevant output. contrasts(dataD$sfd) <-
contr.sum(4)
simD1 <- lme(org1 ~ sfd/survey-1, data="" random = ~sfd-1 | grp1/survey) G1 <- dataD[dataD$grp1
=="1", ]
> print(fixef(simD1))
I would be grateful if anyone could help. Carole Birrell
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: "Conflicting definitions"?, John Chambers |
|---|---|
| Next by Date: | Summary "coxph", Mika Nakazono |
| Previous by Thread: | "Conflicting definitions"?, Duncan Murdoch |
| Next by Thread: | Summary "coxph", Mika Nakazono |
| Indexes: | [Date] [Thread] [Top] [All Lists] |