powered by
This function transforms a grouped two-column response data frame into a multi-column one, another data format accepted by pblm
pblm
multicolumn(formula,data)
A data frame with as many responses as the number cells from the underlying response table and covariates (if any).
a two-side formula with counts in the left side.
a data frame with two categorical responses, covariates (if any) and a count variable.
Marco Enea
#NOT RUN data(ulcer) multicolumn(freq~medication+pain+operation,data=ulcer)
Run the code above in your browser using DataLab