calculate.dra.risk.adjustment.glm: Calculates a GLM for using in the survey direct risk...

calculate.dra.risk.adjustment.glmR Documentation

Calculates a GLM for using in the survey direct risk adjustment process.

Description

Calculates a GLM for using in the survey direct risk adjustment process.

Usage

calculate.dra.risk.adjustment.glm(
  input.dt,
  outcome.col.name,
  covariate.col.names,
  outlier.limits = c(-Inf, Inf),
  ...
)

Arguments

input.dt

Input data.table with all cited columns present.

outcome.col.name

The outcome column.

covariate.col.names

A character vector of column names to add to the model.

outlier.limits

Vector air of numeric. Outcomes lower than the first or higher than the second will be excluded from the model. Might be a bit bizarre for factors (default: c(-Inf, Inf))

...

Extra variables to be passed to stats::glm. In particular, you'll probably want to specify the family (e.g. binomial(link = 'logit') for binary, poisson for length of stay)

Value

A GLM object.


mattmoo/daohtools documentation built on Feb. 5, 2023, 5:38 a.m.