Meir Preiszler
2008-Dec-18 08:08 UTC
[R] Calculating Sensitivity, Specificity, and Agreement from Logistics Regression Model
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 ******************************************** Meir Preiszler - Research Engineer I t a m a r M e d i c a l Ltd. Caesarea, Israel: Tel: +(972) 4 617 7000 ext 232 Fax: +(972) 4 627 5598 Cell: +(972) 54 699 9630 Email: pmeir@itamar-medical.com Web: www.Itamar-medical.com ********************************************* ----------------8<--------------------8<-------------------8<------------------- This E-mail is confidential information of Itamar medical Ltd. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. Before printing this email , kindly think about the environment. Itamar Medical Ltd. MIS Yan Malgin. ----------------8<--------------------8<-------------------8<------------------- [[alternative HTML version deleted]]
David Hajage
2008-Dec-18 09:00 UTC
[R] Calculating Sensitivity, Specificity, and Agreement from Logistics Regression Model
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20081218/405f4b9e/attachment.pl>
Frank E Harrell Jr
2008-Dec-18 13:49 UTC
[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 > MeirBeware as those 3 measures are discontinuous functions of x1 and x2, requiring completely arbitrary dichtomizations, and are improper scoring rules in the statistical sense. Frank> > > > > > ******************************************** > Meir Preiszler - Research Engineer > I t a m a r M e d i c a l Ltd. > Caesarea, Israel: > Tel: +(972) 4 617 7000 ext 232 > Fax: +(972) 4 627 5598 > Cell: +(972) 54 699 9630 > Email: pmeir at itamar-medical.com > Web: www.Itamar-medical.com > ********************************************* > > > > > ----------------8<--------------------8<-------------------8<------------------- > This E-mail is confidential information of Itamar medical Ltd. It may also > be legally privileged. If you are not the addressee you may not copy, forward, > disclose or use any part of it. If you have received this message in error, > please delete it and all copies from your system and notify the sender > immediately by return E-mail. Internet communications cannot be guaranteed > to be timely, secure, error or virus-free. The sender does not accept > liability for any errors or omissions. Before printing this email , > kindly think about the environment. Itamar Medical Ltd. MIS Yan Malgin. > ----------------8<--------------------8<-------------------8<------------------- > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >-- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
Felix Schönbrodt
2008-Dec-20 08:46 UTC
[R] Calculating Sensitivity, Specificity, and Agreement from Logistics Regression Model
> Von: Frank E Harrell Jr <f.harrell@vanderbilt.edu> > Datum: 18. Dezember 2008 14:49:53 MEZ > An: Meir Preiszler <pmeir@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]]