Re: [R] logistic regression

From: Chris Lawrence <chris_at_lordsutch.com>
Date: Thu 16 Feb 2006 - 16:49:34 EST

On 2/15/06, Taka Matzmoto <sell_mirage_ne@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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Feb 16 16:53:48 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:31 EST