multicolumn {pblm} | R Documentation |
transforming bivariate data in a multi-column format
Description
This function transforms a grouped two-column response data frame into a multi-column one, another data format accepted by pblm
Usage
multicolumn(formula,data)
Arguments
formula |
a two-side formula with counts in the left side. |
data |
a data frame with two categorical responses, covariates (if any) and a count variable. |
Value
A data frame with as many responses as the number cells from the underlying response table and covariates (if any).
Author(s)
Marco Enea
Examples
#NOT RUN
data(ulcer)
multicolumn(freq~medication+pain+operation,data=ulcer)
[Package pblm version 0.1-12 Index]