Re: [R] Generalized Linear Model

From: Alexander Engelhardt <alex_at_chaotic-neutral.de>
Date: Mon, 25 Apr 2011 22:27:02 +0200

Am 25.04.2011 21:28, schrieb Megan:
> 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)

What do you mean by this? You have two input variables, who are binary, meaning yes/no (or male/female, high/low, ...) variables?

> 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.

If your dependent variable is binary, you might want to google for "logistic regression" (this belongs to generalized linear models). The R-function who handles this is glm(), with the parameter family=binomial().

Have fun,
  Alex



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 Mon 25 Apr 2011 - 20:28:28 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 Mon 25 Apr 2011 - 21: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