Learn R Programming

MetricsWeighted (version 0.4.0)

r_squared_gamma: Pseudo R-Squared regarding Gamma deviance

Description

Wrapper to r_squared with deviance_function = deviance_gamma.

Usage

r_squared_gamma(actual, predicted, w = NULL, ...)

Arguments

actual

Observed values.

predicted

Predicted values.

w

Optional case weights.

...

Further arguments passed to r_squared.

Value

A numeric vector of length one.

See Also

r_squared.

Examples

Run this code
# NOT RUN {
r_squared(1:10, c(1:9, 12), w = 1:10, deviance_function = deviance_gamma)
r_squared_gamma(1:10, c(1:9, 12), w = 1:10)
# }

Run the code above in your browser using DataLab