Hi,
It is slightly clunky but:
mod2 <- glm(Y ~ offset(I(1.3 * X1)) + X2, family = "binomial")
should do the trick. See ?offset for details.
Cheers,
Josh
On Thu, Jul 21, 2011 at 7:42 PM, Johan Jackson
wrote:
> Hello all,
>
> I am using a glm() and would like to fix one of the regression coef
Hello all,
I am using a glm() and would like to fix one of the regression coefficients
to be a particular value and see what happens to the fit of the model. E.g.:
mod1 <- glm(Y ~ X1 + X2,family='binomial')
mod2 <- glm(Y~[fixed to 1.3]X1 + X2,family='binomial')
The beta for X1 is freely estimate
2 matches
Mail list logo