[R] logistric regression: model revision
dwinsemius at comcast.net
Mon Nov 7 17:05:46 CET 2011
On Nov 7, 2011, at 10:58 AM, Sally Ann Sims wrote:
> I am working on fitting a logistic regression model to my dataset.
> I removed the squared term in the second version of the model, but
> my model output is exactly the same.
> Model version 1: GRP_GLM<-glm(HB_NHB~elev
> Model version 2: QM_1<-glm(HB_NHB~elev
> The call in version 2 has changed:
> glm(formula = HB_NHB ~ elev + costdis1, family = binomial(link =
> data = glm_2)
> But Iâ€™m getting the exact same results as I did in the model where
> costdis1 is squared.
Are you sure that you got output that correctly modeled the
costdis1^2? I would ahve guessed that you would have needed to use :
The "^" in model formulas is for composing interactions.
> Any ideas what I might do to correct this? Thank you.
> [[alternative HTML version deleted]]
And please post in plain text.
David Winsemius, MD
West Hartford, CT
More information about the R-help