Hi all
 I am using the caret package and having difficulty in obtaining the results
using regression, I used the glmnet to model and trying to get the
coefficients and the model parameters  I am trying to use the
extractPrediction to obtain a confusion matrix and it seems to be giving me
errors.


x<-read.csv("x.csv", header=TRUE);
y<-read.csv("y.csv", header=TRUE);
tc=trainControl(method="cv", number=10 );
glmmat<-train(x,y,method="glmnet", trControl=tc);
extractPrediction(list(glmmat,testX=x,testY = y));

any help would be great
thanks
vss

        [[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