Many thanks for the help.

I assumed that I would need to account for the variables in the model, even
though I wish to assign a zero coefficient to them. I've looked at the
offset function, but does this not just assign the value 1 to the variables?
How would I specify a zero coefficient to more than one predictor in the glm
model? Do I do this directly somehow  i.e.
y~I(X1)+offset(X2==0)+offset(X3==0)... ?

David
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Setting-constraints-in-the-glm-package-tp3013435p3014049.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to