Rsquared: R-squared

View source: R/Rsquared.R

RsquaredR Documentation

R-squared

Description

calculate R-squared following McFadden or Nagelkerke

Usage

Rsquared(model, method = c("McFadden", "Nagelkerke"), verbose = TRUE)

Arguments

model

model

method

McFadden or Nagelkerke

verbose

TRUE or FALSE, indicating whether progress should be printed or not

Details

\loadmathjax

Calculate R-squared following Nagelkerke or McFadden:

  • Nagelkerke: \mjseqnR^2 = 1 - \exp(2/N \cdot (log\mathcalL_0 - log\mathcalL_1 ) )

  • McFadden: \mjseqnR^2 = 1 - log\mathcalL_1 / log\mathcalL_0

Value

R-squared as numeric value

Author(s)

Maximilian Pichler


sjSDM documentation built on Sept. 11, 2024, 7:18 p.m.