View source: R/strobe_diff_byvar.R
strobe_diff_byvar | R Documentation |
Print regression results according to STROBE
strobe_diff_byvar(meas, var, group, adj, data, dec = 2)
meas |
outcome meassure variable name in data-data.frame as a string. Can be numeric or factor. Result is calculated accordingly. |
var |
binary exposure variable to compare against (active vs placebo). As string. |
group |
groups to compare, as string. |
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 three dimensional regression analysis of group vs var for meas. By var. Includes p-values.
data('mtcars') mtcars$vs<-factor(mtcars$vs) mtcars$am<-factor(mtcars$am) strobe_diff_byvar(meas="mpg",var="vs",group = "am",adj=c("disp","wt","hp"),data=mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.