Description Usage Arguments Value Examples
This function allows you to calculate mean and sd for a numeric variable
1 2 | quantify_numeric(covariate, df, grouping_var, num_display = "PM",
show_pval = TRUE, digits = 1)
|
covariate |
Numeric variable of interest |
df |
Dataset containing covariate |
grouping_var |
Variable to group by (will be columns of table) |
num_display |
How should results be displayed? ('PM' for mean +- sd, 'PRS' for mean (sd)) |
show_pval |
Logical. Should the p-value results be displayed? |
digits |
Number of digits to round decimals to |
A data frame summarizing mean/sd of covariate at each level of grouping variable
1 2 3 4 | ## Not run:
quantify_numeric(covariate = age, df = obpv_baseline, grouping_var = obpv_quintile, digits = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.