Displaying 1 result from an estimated 1 matches for "plsfit2".
2013 Mar 02
2
caret pls model statistics
...but if I left as a factor I would get an
error following the summary function
iris$Species=as.numeric(iris$Species)
inTrain1=createDataPartition(y=iris$Species,
p=.75,
list=FALSE)
training1=iris[inTrain1,]
testing1=iris[-inTrain1,]
ctrl1=trainControl(method="cv",
number=10)
plsFit2=train(Species~.,
data=training1,
method="pls",
trControl=ctrl1,
metric="Rsquared",
preProc=c("scale"))
data(iris)
training1=iris[inTrain1,]
datvars=training1[,1:4]
dat.sc=scale(datvars)
n=nrow(dat.sc)
dat.indices=seq(1,n)
timematrix=with(training...