[R] logistic regression
Chris Lawrence
chris at lordsutch.com
Thu Feb 16 06:49:34 CET 2006
On 2/15/06, Taka Matzmoto <sell_mirage_ne at hotmail.com> wrote:
> I have two bianry variables (X and Y) and one continuous variable (Z).
>
> I like to know, after controlling for the continuous variable, where one of
> the binary is significantly related to the other binary variable using
> logistic regression
>
> model <- glm(Y ~ X + Z, family=binomial)
>
> Is checking the significance of the coefficient of X a proper way for doing
> that ?
Yes, that will do it.
Chris
More information about the R-help
mailing list