Learn R Programming

stRoke (version 23.9.1)

generic_stroke: Generic stroke study outcome

Description

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.

Usage

generic_stroke(df, group, score, strata = NULL, variables = NULL)

Value

Returns list with three elements

Arguments

df

Data set as data frame

group

Variable to group by

score

Outcome measure variable

strata

Optional variable to stratify by

variables

String of variable names to include in adjusted OLR-analysis

Examples

Run this code
# generic_stroke(df = stRoke::talos, group = "rtreat", score = "mrs_6", 
# variables = c("hypertension","diabetes","civil"))

Run the code above in your browser using DataLab