Returns a dataframe corresponding to a univariate table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
response |
string vector with name of response |
covs |
character vector with the names of columns to fit univariate models to |
data |
dataframe containing data |
adj_cov |
character vector containing covariates to adjust for in each (no longer univariate) model |
type |
string indicating he type of univariate model to fit. The function will try and guess what type you want based on your response. If you want to override this you can manually specify the type. Options include "linear", "logistic", "coxph", "crr", "boxcox","logistic" |
strata |
character vector of covariates to stratify by. Only used for coxph and crr |
markup |
boolean indicating if you want latex markup |
sanitize |
boolean indicating if you want to sanitize all strings to not break LaTeX |
nicenames |
booling indicating if you want to replace . and _ in strings with a space |
testing |
boolean to indicate if you want to print out the covariates before the model fits. |
showN |
boolean indicating if you want to show sample sizes |
CIwidth |
width of confidence interval, default is 0.95 This will allow you to see which model is not fitting if the function throws an error |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.