Hi,

I have managed to format my data into a single datframe consisting of two AsIs 
response and predictor dataframes in order to supply the plsr command of the 
pls package for principal components analysis.

When I execute the command, however, I get this error:
> fiber1 <- plsr(respmat ~ predmat, ncomp=1, data=inputmat,validation="LOO")
Error in model.frame.default(formula = respmat ~ predmat, data = inputmat) :
  invalid type (list) for variable 'respmat'

I happen to have a lot of NAs  in some of the columns. Is that the problem?

Any input will be greatly appreciated.

Thank you very much, in advance.

Payam
--
Payam Minoofar, Ph.D.
Scientist
Meissner Filtration Products
4181 Calle Tesoro
Camarillo, CA 93012
USA
+1 805 388 9911
+1 805 388 5948 fax
payam.minoo...@meissner.com


        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to