Re: [R] Puzzled in utilising summary.lm() to obtain Var(x)

2005-06-15 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > On Wed, 15 Jun 2005, Ajay Narottam Shah wrote: > > >>> I have a program which is doing a few thousand runs of lm(). Suppose > >>> it is a simple model > >>> y = a + bx1 + cx2 + e > >>> > >>> I have the R object "d" where > >>> d <- summary(lm(y

Re: [R] Puzzled in utilising summary.lm() to obtain Var(x)

2005-06-15 Thread Prof Brian Ripley
On Wed, 15 Jun 2005, Ajay Narottam Shah wrote: >>> I have a program which is doing a few thousand runs of lm(). Suppose >>> it is a simple model >>> y = a + bx1 + cx2 + e >>> >>> I have the R object "d" where >>> d <- summary(lm(y ~ x1 + x2)) >>> >>> I would like to obtain Var(x2) out of "d".

Re: [R] Puzzled in utilising summary.lm() to obtain Var(x)

2005-06-14 Thread Gabor Grothendieck
On 6/14/05, Ajay Narottam Shah <[EMAIL PROTECTED]> wrote: > > > I have a program which is doing a few thousand runs of lm(). Suppose > > > it is a simple model > > > y = a + bx1 + cx2 + e > > > > > > I have the R object "d" where > > > d <- summary(lm(y ~ x1 + x2)) > > > > > > I would like to o

Re: [R] Puzzled in utilising summary.lm() to obtain Var(x)

2005-06-14 Thread Ajay Narottam Shah
> > I have a program which is doing a few thousand runs of lm(). Suppose > > it is a simple model > > y = a + bx1 + cx2 + e > > > > I have the R object "d" where > > d <- summary(lm(y ~ x1 + x2)) > > > > I would like to obtain Var(x2) out of "d". How might I do it? > > > > I can, of course,

Re: [R] Puzzled in utilising summary.lm() to obtain Var(x)

2005-06-14 Thread Gabor Grothendieck
On 6/14/05, Ajay Narottam Shah <[EMAIL PROTECTED]> wrote: > I have a program which is doing a few thousand runs of lm(). Suppose > it is a simple model > y = a + bx1 + cx2 + e > > I have the R object "d" where > d <- summary(lm(y ~ x1 + x2)) > > I would like to obtain Var(x2) out of "d". How

[R] Puzzled in utilising summary.lm() to obtain Var(x)

2005-06-14 Thread Ajay Narottam Shah
I have a program which is doing a few thousand runs of lm(). Suppose it is a simple model y = a + bx1 + cx2 + e I have the R object "d" where d <- summary(lm(y ~ x1 + x2)) I would like to obtain Var(x2) out of "d". How might I do it? I can, of course, always do sd(x2). But it would be much