powered by
Includes table 1, grotta bars and ordinal logistic regression plot. Please just use this function for illustration purposes. To dos: modify grottaBar and include as own function.
generic_stroke(df, group, score, strata = NULL, variables = NULL)
Returns list with three elements
Data set as data frame
Variable to group by
Outcome measure variable
Optional variable to stratify by
String of variable names to include in adjusted OLR-analysis
# generic_stroke(df = stRoke::talos, group = "rtreat", score = "mrs_6", # variables = c("hypertension","diabetes","civil"))
Run the code above in your browser using DataLab