Learn R Programming

msm (version 1.8)

tidy.msm.prevalence: Tidy the output of prevalence.msm

Description

Note this should be called as tidy() not tidy.msm.prevalence() or anything else, as this is a method for the generic tidy() function.

Usage

# S3 method for msm.prevalence
tidy(x, ...)

Value

A tibble with one row per combination of output type (count or percentage) and state, and columns for observed value, expected value and confidence limits for the expected value (if available).

Arguments

x

Output of prevalence.msm.

...

Further arguments (unused).