check_baseline: Check for baseline boundary

Description Usage Arguments Value Examples

View source: R/check_baseline.R

Description

Fits the scaled logit model as well as logistic regression. Does a likelihood ratio test.

Usage

1
2
3
4
5
6
7
8
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 sclr.

fit_lr

Fit object returned by glm.

conf_lvl

Confidence level for the test

verbose

Whether to print message based on test result.

Value

A tibble with a summary.

Examples

1
2
3
library(sclr)
l1 <- sclr_ideal_data(n = 50, theta = 1e6, seed = 20191104)
check_baseline(status ~ logHI, l1)

khvorov45/sclr documentation built on March 4, 2020, 7:17 p.m.