Estimate R-squared Compute nonparametric estimate of R-squared.
measure_r_squared(fitted_values, y, weights = rep(1, length(y)), na.rm = FALSE)
fitted values from a regression function.
the outcome.
weights (IPW, etc.).
logical; should NA's be removed in computation? (defaults to FALSE
)
A named list of: (1) the estimated R-squared of the fitted regression function, and (2) the estimated influence function.