Rsquared {sjSDM} | R Documentation |
R-squared
Description
calculate R-squared following McFadden or Nagelkerke
Usage
Rsquared(model, method = c("McFadden", "Nagelkerke"))
Arguments
model |
model |
method |
McFadden or Nagelkerke |
Details
Calculate R-squared following Nagelkerke or McFadden:
Nagelkerke: \(R^2 = 1 - \exp(2/N \cdot (log\mathcal{L}_0 - log\mathcal{L}_1 ) )\)
McFadden: \(R^2 = 1 - log\mathcal{L}_1 / log\mathcal{L}_0 \)
Value
R-squared as numeric value
Author(s)
Maximilian Pichler
[Package sjSDM version 1.0.5 Index]