check_baseline.Rd
Fits the scaled logit model as well as logistic regression. Does a likelihood ratio test.
check_baseline( formula = NULL, data = NULL, fit_sclr = NULL, fit_lr = NULL, conf_lvl = 0.95, verbose = TRUE )
formula | Formula to use for model fitting. |
---|---|
data | Optional dataframe. |
fit_sclr | Fit object returned by |
fit_lr | Fit object returned by |
conf_lvl | Confidence level for the test |
verbose | Whether to print message based on test result. |
A tibble
with a summary.
library(sclr) l1 <- sclr_ideal_data(n = 50, theta = 1e6, seed = 20191104) check_baseline(status ~ logHI, l1)#>#> # A tibble: 1 x 4 #> sclr_log_lkhd lr_log_lkhd test_statistic p_value #> <dbl> <logLik> <logLik> <logLik> #> 1 -15.4 -15.2758 -0.1608735 1