Description Usage Arguments Value Author(s)
View source: R/02.ParepareDataWithinSites.R
Summarize stratum-specific event counts and trial counts by groups and return a list of lists containing events and totals.
1 | SummarizeStratumEventsTotalsBy(var, by, strata, data)
|
var |
variable name of a binary variable (coded 0 or 1) in the data frame. |
by |
variable name of a categorical variable used as a grouping variable. This should usually be a factor if called in a stratified analysis to avoid differential lengths. |
strata |
variable name of a stratifying variable. |
data |
data frame containing these variables. |
data frame containing one stratum and treatment-specific row of events
(event count) and denom
(trial count) for each stratum. When the data frame supplied is empty (0 rows), a single-row data frame filled with NA is returned.
Kazuki Yoshida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.