Re: [R] Accessing individual variables from summary of lm

2008-07-22 Thread Mark Difford
Hi Ben, > If you wouldn't mind, how do I access the individual components inside > coefficients matrix? What you want to know about is ?attributes ## attributes(model) model$coefficients model$coefficients[1] model$coefficients[2:4] model$coefficients[c(1,5)] HTH, Mark. ascentnet wrote: > >

Re: [R] Accessing individual variables from summary of lm

2008-07-22 Thread Mark Difford
Hi Ben, Sorry (still a little out-of-tune), perhaps what you really need to know about is ?"[" HTH, Mark. Mark Difford wrote: > > Hi Ben, > >> If you wouldn't mind, how do I access the individual components inside >> coefficients matrix? > > What you want to know about is ?attributes > > #

Re: [R] Accessing individual variables from summary of lm

2008-07-22 Thread ascentnet
Thanks for your help! If you wouldn't mind, how do I access the individual components inside coefficients matrix? thanks, Ben. Paul Smith wrote: > > On Tue, Jul 22, 2008 at 5:44 AM, ascentnet <[EMAIL PROTECTED]> wrote: >> I am trying to access the R2, intercept, and slope out of the summary >>

Re: [R] Accessing individual variables from summary of lm

2008-07-22 Thread Paul Smith
On Tue, Jul 22, 2008 at 5:44 AM, ascentnet <[EMAIL PROTECTED]> wrote: > I am trying to access the R2, intercept, and slope out of the summary from an > lm so that I can insert it into a database using RODBC. How can I access > these individually? Try: data(swiss) model <- lm(Infant.Mortality ~ .

[R] Accessing individual variables from summary of lm

2008-07-22 Thread ascentnet
I am trying to access the R2, intercept, and slope out of the summary from an lm so that I can insert it into a database using RODBC. How can I access these individually? thanks in advance, Ben. -- View this message in context: http://www.nabble.com/Accessing-individual-variables-from-summary-