View source: R/illustrative-analysis-helpers.R
extract_rhs_varnames | R Documentation |
Extract variable names from right side of model formula
extract_rhs_varnames(form, dat)
form |
Formula object |
dat |
Dataframe on which the formula is applied |
Character vector of variable names in right hand side of formula
form <- reformulate( termlabels = c("age_allo1_decades", "mdsclass"), response = "Surv(ci_allo1, ci_s_allo1 == 1)" ) extract_rhs_varnames(form, dat_mds_synth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.