Description Usage Arguments Examples
View source: R/univAndMultiGLM.R
Given a dataset, make two column output with univariable results for each predictor, and second column with single multivariable model
1 2 3 |
outcome |
Vector of outcome |
covars_uni |
Matrix with columns to be used in univariable models |
covars_multi |
Matrix with columns to be used in multivariable models. If NULL, univariable predictors with p < 0.05 will be used. |
p_multiV |
ANOVA p-value threshold used for inclusion in multiariable model. Ignored if covars_multi passed in. |
family |
Model family for GLM: "binomial", "gaussian", "poisson". |
file |
File name for LaTeX output to be sent to. |
d |
Decimal places used for HR and confidence interval. |
d_pVal |
Decimal places used for p value. |
CIs |
Logical to indicate whether confidence intervals should be printed. |
z0 |
Critical value used for confidence interval. |
name |
Name of model to be used for caption |
widthCharCol |
Width of first column with predictor names and levels. |
markdown |
Boolean to indicate that output be compatible with markdown rather than LaTeX. |
1 2 3 | dontrun{
univAndMultiGLM()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.