cv: Compute model quality

View source: R/cv.R

cvR Documentation

Compute model quality

Description

Compute the coefficient of variation.

Usage

cv(x, ...)

Arguments

x

Fitted linear model of class lm, merMod (lme4) or lme (nlme).

...

More fitted model objects, to compute multiple coefficients of variation at once.

Details

The advantage of the cv is that it is unitless. This allows coefficient of variation to be compared to each other in ways that other measures, like standard deviations or root mean squared residuals, cannot be.

Value

Numeric, the coefficient of variation.

Examples

data(efc)
fit <- lm(barthtot ~ c160age + c12hour, data = efc)
cv(fit)


sjstats documentation built on Nov. 20, 2022, 1:06 a.m.