multicolumn | R Documentation |
This function transforms a grouped two-column response data frame into a multi-column one, another data format accepted by pblm
multicolumn(formula,data)
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. |
A data frame with as many responses as the number cells from the underlying response table and covariates (if any).
Marco Enea
#NOT RUN
data(ulcer)
multicolumn(freq~medication+pain+operation,data=ulcer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.