> Von: Frank E Harrell Jr <f.harr...@vanderbilt.edu> > Datum: 18. Dezember 2008 14:49:53 MEZ > An: Meir Preiszler <pm...@itamar-medical.com> > Kopie: r-help@r-project.org > Betreff: Re: [R] Calculating Sensitivity, Specificity, and Agreement > from Logistics Regression Model > > > Meir Preiszler wrote: >> Hi, >> Assume I have a variable Y having two discrete values and two >> predictor variables x1 and x2. >> I then do a logistic regression model fit as: >> fit<-glm(Y~x1+x2,family=binomial). Are there functions in R than >> calculate the >> Sensitivity, Specificity , and Agreement of the model "fit"? >> Thanks >> Meir > > Beware as those 3 measures are discontinuous functions of x1 and x2, > requiring completely arbitrary dichtomizations, and are improper > scoring rules in the statistical sense.
Hi Frank, maybe you should take a look at the ROCR package. I use it a lot (as well with logistic regression), it can plot and calculate many classification relevant indices. Felix [[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.