on 01/16/2009 02:19 PM A Van Dyke wrote: > when i try to validate my logistic regression model: > > fit<-glm(y~x,binomial,data=dataname,x=TRUE,y=TRUE) > validate(fit,method="boot",B=150,...) > > i get the following error message: > > Error in UseMethod("validate") : no applicable method for "validate" > > any insight would be appreciated. many thanks!
You appear to be trying to use the validate() function from Frank Harrell's Design package. However, you are attempting to use it with a glm() created from R's stats package. The two don't mix. If you want to use Frank's validate() function, you will need to create your logistic regression model using Frank's lrm() function. See ?lrm and ?validate.lrm for more information. HTH, Marc Schwartz ______________________________________________ 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.