strobe_diff_byvar: REWRITE UNDERWAY - replaced by 'print_diff_byvar'

View source: R/strobe_diff_byvar.R

strobe_diff_byvarR Documentation

REWRITE UNDERWAY - replaced by 'print_diff_byvar'

Description

Print regression results according to STROBE

Usage

strobe_diff_byvar(meas, var, group, adj, data, dec = 2)

Arguments

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.

Details

Printable table of three dimensional regression analysis of group vs var for meas. By var. Includes p-values.

Examples

  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)

agdamsbo/daDoctoR documentation built on Aug. 30, 2022, 4:29 p.m.