Skip to content
Prev 12360 / 398502 Next

Addition to: lm weights

On Mon, 16 Jul 2001, Prof Brian Ripley wrote:

            
Sorry, I see now. This was meant to be a function definition, but there
are no braces, so I read what was actually in the message ....

Use

xx$wt <- xx[,wt]
lm1 <- lm(form,data=xx,weights=wt)