dot-run_single_glm: Run binary regression

.run_single_glmR Documentation

Run binary regression

Description

Split data at cutpoint j and run a binary regression with the given link function.

Usage

.run_single_glm(
  ord_data,
  mdl_fx,
  coef_fx,
  model_formula,
  response_var,
  j,
  .link = "logit",
  control = list()
)

Arguments

ord_data

Ordinal dataframe

mdl_fx

Model function to use, either glm or glmer

coef_fx

Coefficient function to use, either fixef or coef

model_formula

Model formula to evaluate

response_var

LHS of the formula

j

Cutpoint value

.link

Link function, default is logit (ie logistic regression)

control

Control to use for mixed models, will default to bobyqa if not specified

Value

Dataframe with binary regression results


tsostarics/sostools documentation built on Nov. 22, 2022, 7:26 p.m.