Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Prof Brian Ripley
The short answer is no, as there is no way to recover the fitted values and residuals so you can't get a proper fit object of class lm (and hence get `summaries and all'). Your pseudo-data method needs to fix the u_i to be mean zero, variance one in the sample. That is probably the quickest

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: The short answer is no, as there is no way to recover the fitted values and residuals so you can't get a proper fit object of class lm (and hence get `summaries and all'). Your pseudo-data method needs to fix the u_i to be mean zero, variance

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Ted Harding
Thanks, Brian! On 18-Apr-04 Prof Brian Ripley wrote: The short answer is no, as there is no way to recover the fitted values Well, the fitted values (a + b*x_i) would be available, as would be the estimates and SEs of coefficients, sums of squares, and relevant F ratios and P values. and

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Prof Brian Ripley
On Sun, 18 Apr 2004 [EMAIL PROTECTED] wrote: Thanks, Brian! On 18-Apr-04 Prof Brian Ripley wrote: The short answer is no, as there is no way to recover the fitted values Well, the fitted values (a + b*x_i) would be available, as would be the estimates and SEs of coefficients, sums of

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Peter Dalgaard
(Ted Harding) [EMAIL PROTECTED] writes: Thanks, Brian! On 18-Apr-04 Prof Brian Ripley wrote: The short answer is no, as there is no way to recover the fitted values Well, the fitted values (a + b*x_i) would be available, as would be the estimates and SEs of coefficients, sums of

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Ted Harding
On 18-Apr-04 Peter Dalgaard wrote: However, it begs the question whether it wouldn't have been better to design the RSS into the lm class rather than computing it from residuals in summary.lm and anova.lm and predict.lm and... Well, something like this though lay under my original query. The

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread kjetil
On 18 Apr 2004 at 2:27, Ted Harding wrote: Hi Folks, I am dealing with data which have been presented as at each x_i, mean m_i of the y-values at x_i, sd s_i of the y-values at x_i number n_i of the y-values at x_i and I want to linearly regress y on x.

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Ted Harding
On 18-Apr-04 Peter Dalgaard wrote: (Ted Harding) [EMAIL PROTECTED] writes: On 18-Apr-04 Prof Brian Ripley wrote: The short answer is no, as there is no way to recover the fitted values Well, the fitted values (a + b*x_i) would be available, as would be the estimates and SEs of

[R] lm with data=(means,sds,ns)

2004-04-17 Thread Ted Harding
Hi Folks, I am dealing with data which have been presented as at each x_i, mean m_i of the y-values at x_i, sd s_i of the y-values at x_i number n_i of the y-values at x_i and I want to linearly regress y on x. There does not seem to be an option to 'lm' which