View source: R/print_reg_diff_bin.R
print_reg_diff_bin | R Documentation |
Print-friendly regression results for easy export to text editor
print_reg_diff_bin(meas, group, var = NULL, adj, data, dec = 2)
meas |
outcome measure variable name in data-data.frame as a string. Can be numeric or factor. Result is calculated accordingly. |
group |
groups to compare, as string. |
var |
Default is NULL. |
adj |
variables to adjust for, as string. |
data |
dataframe of data. |
dec |
decimals for results, standard is set to 2. Mean and sd is dec-1. |
Printable table of regression analysis by group for outcome measure. Detects whether to perform logistic or linear regression. output is list of
data('mtcars') mtcars$vs<-factor(mtcars$vs) mtcars$am<-factor(mtcars$am) print_reg_diff_bin(meas="am",group="vs",adj=c("disp","wt"),data=mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.