calculate.dra.risk.adjustment.glm | R Documentation |
Calculates a GLM for using in the survey direct risk adjustment process.
calculate.dra.risk.adjustment.glm( input.dt, outcome.col.name, covariate.col.names, outlier.limits = c(-Inf, Inf), ... )
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) |
A GLM object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.