collapseProp: Calculates proportions of individuals in a 2x2 table of (trt,...

Description Usage Arguments Value

View source: R/vizBySubgroup-plotFcns.R

Description

collapseProp() is an internal function that takes a data frame of a particular structure and returns a data frame with proportions that are used in creating bar charts.

Usage

1

Arguments

data

Any object that can be coerced into a data.frame, that contains the data needing to be summarized. The first column is a binary covariate needing to be summarized. The second column is a binary variable named trt that indicates each observation's treatment status (0 or 1).

var

An scalar integer that indicates which column(s) of data contain the covariates to be summarized. This argument is deprecated and will be removed in later versions.

Value

A data frame with three variables:


sanoke/hetviz documentation built on March 4, 2020, 7:58 a.m.