Skip to content
Prev 311472 / 398513 Next

Weighted least squares

Hi,

That message usually means that an unknown argument has been supplied to
the function.

In this case you have spelt weights incorrectly.

Best wishes

Martyn

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of rbowman16
Sent: 21 November 2012 14:34
To: r-help at r-project.org
Subject: [R] Weighted least squares

Hi everyone, 

I admit I am a bit of an R novice, and I was hoping someone could help
me with this error message:

Warning message:
In lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
  extra arguments weigths are just disregarded.


My equation is:


 lm( Y ~ X1 + X2 + X3, weigths = seq(0.1, 1, by = 0.1))



--
View this message in context:
http://r.789695.n4.nabble.com/Weighted-least-squares-tp4650292.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star.\ _...{{dropped:12}}