Re: [R] lm function in R

2010-02-14 Thread kMan
PM To: kMan Subject: Re: [R] lm function in R Thank you so much, kMan. That makes sense. Only one question, how can I see the value of 'error'? Here's what I see: Call: lm(formula = Y ~ X1 * X2 * X3, na.action = na.exclude) Coefficients: (Intercept)

Re: [R] lm function in R

2010-02-14 Thread Douglas Bates
turday, February 13, 2010 5:04 PM > To: Bert Gunter > Cc: r-help@r-project.org > Subject: Re: [R] lm function in R > > I tried.. > > mod = lm(Y ~ X1*X2*X3, na.action = na.exclude) > formula(mod) > > This produced > Y ~ X1 * X2 * X3 > > > When I typ

Re: [R] lm function in R

2010-02-13 Thread Ista Zahn
;>> Is it correct to assume then that... >>>> >>>> When I put + R evaluates the following equation: >>>> Y-Hat = b0 + b1X1 + b2X2 + . . . bkXk + 7 7 7 + bkXk >>>> >>>> >>>> But when I put * R evaluates the following equa

Re: [R] lm function in R

2010-02-13 Thread Daniel Malter
iscussurus - -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Something Something Sent: Saturday, February 13, 2010 5:04 PM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] lm function in R I tried.. mod = lm

Re: [R] lm function in R

2010-02-13 Thread Something Something
ia, which is surprisingly good for that sort > of question these days. > > -- > David. > >> >> >> >> >> >> On Sat, Feb 13, 2010 at 1:30 PM, Bert Gunter >> wrote: >> >> ?formula >>> >>> >>> Bert Gunter

Re: [R] lm function in R

2010-02-13 Thread Gabor Grothendieck
Feb 13, 2010 at 1:30 PM, Bert Gunter wrote: > >> ?formula >> >> >> Bert Gunter >> Genentech Nonclinical Statistics >> >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] >> On >> Behalf

Re: [R] lm function in R

2010-02-13 Thread David Winsemius
ordlund Cc: r-help@r-project.org Subject: Re: [R] lm function in R Thanks Dan. Yes that was very helpful. I didn't see the change from '*' to '+'. Seems like when I put * it means - interaction & when I put + it's not an interaction. Is it correct to assum

Re: [R] lm function in R

2010-02-13 Thread Something Something
> Genentech Nonclinical Statistics > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On > Behalf Of Something Something > Sent: Saturday, February 13, 2010 1:24 PM > To: Daniel Nordlund > Cc: r-help@r-project.org > Subjec

Re: [R] lm function in R

2010-02-13 Thread Bert Gunter
oject.org [mailto:r-help-boun...@r-project.org] > > On Behalf Of Something Something > > Sent: Friday, February 12, 2010 5:28 PM > > To: Phil Spector; r-help@r-project.org > > Subject: Re: [R] lm function in R > > > > Thanks for the replies everyone. Greatly app

Re: [R] lm function in R

2010-02-13 Thread Something Something
g [mailto:r-help-boun...@r-project.org] > > On Behalf Of Something Something > > Sent: Friday, February 12, 2010 5:28 PM > > To: Phil Spector; r-help@r-project.org > > Subject: Re: [R] lm function in R > > > > Thanks for the replies everyone. Greatly appreciate it.

Re: [R] lm function in R

2010-02-12 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Something Something > Sent: Friday, February 12, 2010 5:28 PM > To: Phil Spector; r-help@r-project.org > Subject: Re: [R] lm function in R > > Thanks

Re: [R] lm function in R

2010-02-12 Thread Something Something
Thanks for the replies everyone. Greatly appreciate it. Some progress, but now I am getting the following values when I don't use "as.factor" 13.14167 25.11667 28.34167 49.14167 40.39167 66.86667 Is that what you guys get? On Fri, Feb 12, 2010 at 5:00 PM, Phil Spector wrote: > By converting