pseudo_R2: Calculate a pseudo R^2 value from a fitted model

View source: R/pseudo_R2.R

pseudo_R2R Documentation

Calculate a pseudo R^2 value from a fitted model

Description

Calculate the squared correlation of the fitted and observed values for the dependent variable, as a pseudo-R^2. Inputs can be models fit by lmer or lm (other formats to be incorporated later).

Usage

pseudo_R2(x)

Arguments

x

result from model fitting, generally the output of lm or lmer.

Value

numeric, the squared correlation of the fitted values and the observed values of the dependent variable


mjdufort/miscHelpers documentation built on Feb. 4, 2024, 7:44 p.m.