On Thu, Aug 16, 2012 at 9:01 AM, Diana Marcela Martinez Ruiz <dianamm...@hotmail.com> wrote: > Hello, > > As obtained from a table svyglm clasificaion, sensitivity and specificity. > The funtion ConfusionMatrix () of the library (caret) > gives these results but not how to apply it to svyglm. >
predict() will give you fitted values from svyglm on either the training data or new test data. You need to choose a threshold to turn the predicted probabilities into predicted 1s and 0s. At this point you could use ConfusionMatrix to compute sensitivity and specificity, but its uncertainty estimates won't be appropriate for the survey design. -thomas -- Thomas Lumley Professor of Biostatistics University of Auckland ______________________________________________ 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.