Learn R Programming

greport (version 0.5-3)

sampleFrac: Compute Sample Fractions

Description

Uses denominators stored with setgreportOption along with counts specified to SampleFrac to compute fractions of subjects in current analysis

Usage

sampleFrac(n, nobsY = NULL, table = TRUE)

Arguments

n
integer vector, named with "enrolled","randomized" and optionally also including treatment levels.
nobsY
a result of the the nobsY Hmisc function
table
set to TRUE to return as an attribute "table" a character string containing a LaTeX tabular showing the pertinent frequencies created from n and the denom option, and if nobsY is present, ad