check_baseline {sclr} | R Documentation |
Check for baseline boundary
Description
Fits the scaled logit model as well as logistic regression. Does a likelihood ratio test.
Usage
check_baseline(
formula = NULL,
data = NULL,
fit_sclr = NULL,
fit_lr = NULL,
conf_lvl = 0.95,
verbose = TRUE
)
Arguments
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. |
Value
A tibble
with a summary.
Examples
library(sclr)
l1 <- sclr_ideal_data(n = 50, theta = 1e6, seed = 20191104)
check_baseline(status ~ logHI, l1)
[Package sclr version 0.3.1 Index]