Re: [R] Coefficients from LM

2005-09-16 Thread Dieter Menne
Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com writes: Here's an example with a glm; lm() works the same way but has fewer internal objects. mod3 - glm(tree ~ altitude, family = binomial) You can use names() to find out what's inside: names(mod3) [1] coefficients

Re: [R] Coefficients from LM

2005-09-16 Thread Prof Brian Ripley
On Fri, 16 Sep 2005, Dieter Menne wrote: Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com writes: Here's an example with a glm; lm() works the same way but has fewer internal objects. mod3 - glm(tree ~ altitude, family = binomial) You can use names() to find out what's

[R] Coefficients from LM

2005-09-15 Thread Pablo Gonzalez
Hi everyone, Can anyone tell me if its possibility to extract the coefficients from the lm() command? For instance, imagine that we have the following data set (the number of observations for each company is actually larger than the one showed...): Company Y X1 X2 1 y_1

Re: [R] Coefficients from LM

2005-09-15 Thread Charles Annis, P.E.
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pablo Gonzalez Sent: Thursday, September 15, 2005 4:09 PM To: r-help@stat.math.ethz.ch Subject: [R] Coefficients from LM Hi everyone, Can anyone tell me if its possibility to extract the coefficients from the lm() command? For instance, imagine