[R] logistic regression model + Cross-Validation

From: nitin jindal <nitin.jindal_at_gmail.com>
Date: Sun 21 Jan 2007 - 10:51:41 GMT


Hi,

I am trying to cross-validate a logistic regression model. I am using logistic regression model (lrm) of package Design.

f <- lrm( cy ~ x1 + x2, x=TRUE, y=TRUE)
val <- validate.lrm(f, method="cross", B=5)

My class cy has values 0 and 1.

"val" variable will give me indicators like slope and AUC. But, I also need the vector of predicted values of class variable "cy" for each record while cross-validation, so that I can manually look at the results. So, is there any way to get those probabilities assigned to each class.

regards,
Nitin

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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. Received on Sun Jan 21 21:57:08 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 21 Jan 2007 - 15:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.