
Compute LME Slope
compute_lme_slope_df.RdTakes the slope from a lme model and its confidence interval.
Examples
df <- cqtkit_data_verapamil %>% preprocess()
lme_mod <- df %>%
fit_qtc_linear_model(
QT,
RR,
ID,
method = 'REML',
remove_rr_iiv = FALSE
)
compute_lme_slope_df(lme_mod, RR, 0.9)
#> # A tibble: 1 × 3
#> slope slope_ci_lower slope_ci_upper
#> <dbl> <dbl> <dbl>
#> 1 0.132 0.119 0.144