Re: [R] Generalized Linear Model

From: Thomas Levine <thomas.levine_at_gmail.com>
Date: Wed, 27 Apr 2011 06:51:46 -0400

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.



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. Received on Wed 27 Apr 2011 - 10:59:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 27 Apr 2011 - 11:00:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive