R2: Computes R-squared using Bayesian R-squared approach. For...

Description Usage Arguments Value Examples

View source: R/R2.R

Description

Computes R-squared using Bayesian R-squared approach. For detail refer to: Andrew Gelman, Ben Goodrich, Jonah Gabry, and Aki Vehtari (2018). R-squared for Bayesian regression models. The American Statistician, doi:10.1080/00031305.2018.1549100.

Usage

1
2
## S3 method for class 'tridim_transformation'
R2(object, summary = TRUE, probs = c(0.055, 0.945), ...)

Arguments

object

An object of class tridim_transformation

summary

Whether summary statistics should be returned instead of raw sample values. Defaults to TRUE

probs

The percentiles used to compute summary, defaults to 89% credible interval.

...

Unused.

Value

vector of values or a data.frame with summary

Examples

1
2
3
euc2 <- fit_transformation(depV1+depV2~indepV1+indepV2,
  NakayaData, transformation = 'euclidean')
R2(euc2)

TriDimRegression documentation built on May 4, 2021, 9:08 a.m.