Re: [R] Setting constraints in the glm package

2010-10-26 Thread David Winsemius
On Oct 26, 2010, at 9:27 AM, David Smith wrote: Many thanks for the help. You could express your thanks by including context the next time you present a follow-up (as requested in the Posting Guide). Only a minority of readers view this list on Nabble, so we don't see the web delivered

Re: [R] Setting constraints in the glm package

2010-10-26 Thread Ravi Varadhan
radhan, Ph.D. Assistant Professor, Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: David Winsemius Date: Tuesday, October 26, 2010 11:21 am Subject: Re: [R] Setting constraint

Re: [R] Setting constraints in the glm package

2010-10-26 Thread David Smith
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

Re: [R] Setting constraints in the glm package

2010-10-26 Thread David Winsemius
= . -- David Best, -- Wolfgang Viechtbauer Department of Methodology and Statistics Original Message On Behalf Of David Smith Sent: Tuesday, October 26, 2010 12:24 To: r-help@r-project.org Subject: [R] Setting constraints in the glm package Hi, I would like to set a

Re: [R] Setting constraints in the glm package

2010-10-26 Thread Viechtbauer Wolfgang (STAT)
Message From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of David Smith Sent: Tuesday, October 26, 2010 12:24 To: r-help@r-project.org Subject: [R] Setting constraints in the glm package > Hi, > > I would like to set a constraint on the fixed effect estim

[R] Setting constraints in the glm package

2010-10-26 Thread David Smith
Hi, I would like to set a constraint on the fixed effect estimates in a GLM model, such as b1=b2. Is this possible in the glm package? Similarly I would like to set some to equal zero too. I have tried searching the information with this package, but I can't find anything for this. Thanks in adv