Description
Returns the estimated R^2 statistic for determining
the fit of the given model to the data
Usage
r2stat(t1, data, adjusted = TRUE)
Arguments
t1
Object inheriting from rpms
rpms_forest
rpms_boost
or rpms_zinf
data
data frame with variables used to estimate model
adjusted
TRUE/FALSE whether to compute adjusted R^2
Value
R^2 statistic computed using the model and provided data