[R] lm.influence in multivariate linear model
Daniel Mastropietro
mastropi at uwalumni.com
Wed Jun 26 21:58:41 CEST 2002
Hello,
I have fitted a multivariate linear model using lm() but then I cannot
apply any function available for diagnostics, such as lm.influence(),
rstudent() etc. I get the following error message when calling any of the
above functions.
"Error in lm.influence(model1) : non-NA residual length does not match
cases used in fitting"
I have tried with two different data sets. One of them follows:
y =
[,1] [,2]
[1,] 2 4
[2,] 1 -2
[3,] 3 -2
[4,] 0 -1
x =
[,1]
[1,] 1
[2,] 2
[3,] 3
[4,] 4
The command for the fit is simply:
lm(y ~ x)
which runs properly.
Are the diagnostic measures only available for univariate linear models?
Thanks
Daniel Mastropietro
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list