compute_lme_slope_df.RdTakes the slope from a lme model and its confidence interval
compute_lme_slope_df(lme_mod, xdata_col, conf_int = 0.95)tibble of slope, lower_ci, upper_ci
df <- cqtkit_data_verapamil %>% preprocess()
lme_mod <- df %>%
fit_qtc_linear_model(
QT,
RR,
ID,
method = 'REML',
remove_rr_iiv = FALSE
)
#> variance-covariance issues detected, try running again with method = 'REML'
#> If issues persist, try removing IIV.
slope_data <- compute_lme_slope_df(lme_mod, RR, 0.9)
#> Error in intervals.lme(fit, conf_int): cannot get confidence intervals on var-cov components: Non-positive definite approximate variance-covariance
#> Consider 'which = "fixed"'