View source: R/prep_data_for_model.R
prep_data_for_model | R Documentation |
Prepare data for analysis with a statistical model
prep_data_for_model( data, standardize = c("age_at_admit", "AHRQ_score", "val_hosp_rn2bed_ratio", "val_hosp_mcday2inptday_ratio", "val_hosp_rn2inptday_ratio") )
data |
The current data. |
standardize |
Character string of variables to standardize (mean 0, stddev 1) |
create binary variables for models, including ses, race, admission status. Standardized continuous variables for easy converging; rename variables that need to be used in models.
A data frame worthy of applying a statistical model to.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.