[R] Generalized Linear Model

Thomas Levine thomas.levine at gmail.com
Wed Apr 27 12:51:46 CEST 2011


Because you have two dependent variables, you'll want to to use a
multivariate logit. mlogit does this, but I don't know the syntax off
hand.

If you just wanted to look at one dependent variable, it would be the
following (which Alex said)

glm(y~x1*x2,family='binomial')

On Mon, Apr 25, 2011 at 3:28 PM, Megan <aforkonaplate at hotmail.com> wrote:
>
> Hello,
>
> I am trying to run a generalized linear model but do not know where to
> begin. I have attached my data to R but do not know where to go from there.
> I have two independent variables (each has two factors associated with them)
> and two dependent variables, each with either a yes/no response which I've
> valued either 0 or 1 in the data set. Any input would be greatly
> appreciated.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Generalized-Linear-Model-tp3473924p3473924.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list