
Compute Loess Linear R Squared
compute_loess_linear_r_squared.RdComputes R-squared and Adjusted R-squared of loess regression compared to linear regression. Used for determining linearity of C-QT data.
Value
A tibble with R-squared, adjusted R-squared, and partial coefficient of determination comparing loess to linear fit
Examples
compute_loess_linear_r_squared(cqtkit_data_verapamil %>% preprocess(), deltaQTCF, CONC)
#> # A tibble: 1 × 3
#> R_squared R_squared_adj R_partial_det
#> <dbl> <dbl> <dbl>
#> 1 0.971 0.971 0.00121