Re: [R] Generalized Linear Model

2011-04-27 Thread Thomas Levine
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

Re: [R] Generalized Linear Model

2011-04-25 Thread Kehl Dániel
Hi! Try to read about the glm function, type: ?glm in your R editor. It looks like you have contingency tables, maybe a loglin model would be good to start with. D 2011-04-25 12:28 keltezéssel, Megan írta: Hello, I am trying to run a generalized linear model but do not know where to begin

Re: [R] Generalized Linear Model

2011-04-25 Thread Alexander Engelhardt
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? Y

Re: [R] generalized linear model (glm) and "stepAIC"

2009-07-11 Thread Ben Bolker
Simone Santoro wrote: >> Simone Santoro wrote: >>> >>> I have 1! 2 response variables (species growth rates) and two >>> envir onmental factors that I want to test to find out a possible >>> relation. >>> >>> The sample size is quite small: (7>> species-case). >>> >>> I performed a Shapiro tes

Re: [R] generalized linear model (glm) and "stepAIC"

2009-07-11 Thread Simone Santoro
don't answer me again. I hope not to seem hypocrite (I'm not) but I'm very grateful to you. I promise to write again only for more pertinent questions. Best wishes > Date: Fri, 10 Jul 2009 17:45:50 -0700 > From: bol...@ufl.edu > To: r-help@r-project.org > Subject:

Re: [R] generalized linear model (glm) and "stepAIC"

2009-07-10 Thread Ben Bolker
If you possibly can, you should get some local statistical advice. There are a number of pitfalls involved in what you're doing. Frank Harrell's book is a good reference, but may be too advanced if you are a beginner. You are right on the edge of having too little data for what you want to do