Learn R Programming

pblm (version 0.1-12)

multicolumn: 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)

Value

A data frame with as many responses as the number cells from the underlying response table and covariates (if any).

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.

Author

Marco Enea

Examples

Run this code
#NOT RUN 
data(ulcer)
multicolumn(freq~medication+pain+operation,data=ulcer)

Run the code above in your browser using DataLab