generate.quantreg.model: Generate a quantile regression model on which to risk adjust.

View source: R/risk.adjust.R

generate.quantreg.modelR Documentation

Generate a quantile regression model on which to risk adjust.

Description

Generate a quantile regression model on which to risk adjust.

Usage

generate.quantreg.model(
  input.dt,
  output.variable,
  covariates,
  jitter.output.variable = FALSE,
  quantiles.to.assess = seq(0.25, 0.75, by = 0.1)
)

Arguments

input.dt

Data.table with output.variable and covariates.

output.variable

Character name of outcome to be adjusted.

covariates

Character vector of column names to adjust upon.

jitter.output.variable

controls whether the output.variable will be jittered. It seems like DAOH is not quite continuous enough for quantreg. Perhaps not inherent to DAOH per se, but related to the distribution of the CheckWHO data (Default: FALSE).

quantiles.to.assess

Numeric vector, values between 0 and 1, of models to fit. Output variable will be adjusted by the model associated with the nearest quantile.

Value

A quantile regression model fitted at requested quantiles.


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