Dear Helpers, I tries to find an Package or script which deals with Nagelkerke R square. I got Prediction data from Habitatmodels for an animal. Some researchers use the the Nagelkerke R Square to confirm the Goodness of model. I would like to do this as well. Data: 1 0.9847 1 0,7653 ... 0 0,2456 0 0,0457 ... THanks a lot -- Tobias Erik Reiners Justus Liebig University IFZ - Department of Animal Ecology Heinrich-Buff-Ring 26-32 D-35392 Giessen Germany
On 10/22/2008 6:05 AM, Tobias Erik Reiners wrote:> Dear Helpers, > > I tries to find an Package or script which deals with Nagelkerke R square. > I got Prediction data from Habitatmodels for an animal. Some researchers > use the the Nagelkerke R Square to confirm the Goodness of model. I > would like to do this as well. > Data: > 1 0.9847 > 1 0,7653 > ... > 0 0,2456 > 0 0,0457 > ... > > THanks a lotRSiteSearch("Nagelkerke", restrict="function") suggests lrm() in the Design package by Frank Harrell. -- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894
Chuck Cleland wrote:> On 10/22/2008 6:05 AM, Tobias Erik Reiners wrote: >> Dear Helpers, >> >> I tries to find an Package or script which deals with Nagelkerke R square. >> I got Prediction data from Habitatmodels for an animal. Some researchers >> use the the Nagelkerke R Square to confirm the Goodness of model. I >> would like to do this as well. >> Data: >> 1 0.9847 >> 1 0,7653 >> ... >> 0 0,2456 >> 0 0,0457 >> ... >> >> THanks a lot > > RSiteSearch("Nagelkerke", restrict="function") > > suggests lrm() in the Design package by Frank Harrell. >Thanks Chuck, and note Tobias that no R^2 measures goodness of fit but rather explained variation or predictive discrimination. R^2 can be high and there be a major misspecification in the model (e.g., omitting an interaction or nonlinearity term or omitting an important variable). Frank -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University