dat2tib: dat2tib

Description Usage Arguments Examples

View source: R/dat2tib.R

Description

This function accepts data, grouping, and model specifications from the user and produces a Master Tibble. The Master Tibble contains summary statistics, estimated marginal means, and contrasts for all possible combinations of nest_var and trt.

Usage

1
dat2tib(data, model, outcome, trt, tran = NULL, nest_var, contrast)

Arguments

data

A data frame

model

Full modeling function

outcome

Outcome variable used in the model

trt

Treatment arm or grouping variable used in the model

tran

Specify how outcome was previously transformed prior to modeling

nest_var

Grouping variable to be used for the data nesting

contrast

Specify if difference or ratio should be provided for group comparison

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
dat2tib(data = cdisc_data, 
        model = lm(aval ~ arm + age + sex),
        outcome = aval,
        trt = arm,
        nest = param,
        tran = "none")
        
## End(Not run)

RhoInc/dat2stat documentation built on Nov. 15, 2019, 10:06 a.m.