powered by
Wrapper to r_squared with deviance_function = deviance_bernoulli.
r_squared
deviance_function = deviance_bernoulli
r_squared_bernoulli(actual, predicted, w = NULL, ...)
Observed values.
Predicted values.
Optional case weights.
Further arguments passed to r_squared.
A numeric vector of length one.
r_squared.
# NOT RUN { r_squared(c(0, 0, 1, 1), c(0.1, 0.1, 0.9, 0.8), w = 1:4, deviance_function = deviance_bernoulli) r_squared_bernoulli(c(0, 0, 1, 1), c(0.1, 0.1, 0.9, 0.8), w = 1:4) # }
Run the code above in your browser using DataLab