Re: [R] WLS regression weights

2012-10-13 Thread Rui Barradas
Hello, I find your recommended procedure not very sensible but: a) sum(fit$residuals^2)/fit|$d||f.residual | b) This is a statistical question but, for instance, in the case of repeated mesures. But you'd use the precision (1/variance) of the original data, computed by groups of regressor. Hop

[R] WLS regression weights

2012-10-13 Thread Eiko Fried
Hello. I'm am trying to follow a recommendation to deal with a dependent variable in a linear regression. I read that, due to the positive trend in my dependent variable residual vs mean function, I should 1) run a linear regression to estimate the standard deviations from this trend, and 2) run