calc_r2: Calculate R^2

View source: R/calc_R2.r

calc_r2R Documentation

Calculate R2

Description

This function calculates the R2 of a phylogenetic regression model. This value represents how much the predictors in the model explain (or predict) the variation in the response variable.

Usage

calc_r2(output_null, output_alt)

Arguments

output_null

A list outputted from the fit_punc_model function (the null model, typically a phylogenetic mean-only model)

output_alt

A list outputted from the fit_punc_model function (the alternative model)

Value

This function returns the R2 value.

Author(s)

Kevin Surya

References

Wright (1921)


suryakevin/drugcandy documentation built on May 6, 2022, 6:37 p.m.