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

View source: R/tidy.R

tidy.msm.prevalenceR Documentation

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 class 'msm.prevalence'
tidy(x, ...)

Arguments

x

Output of prevalence.msm.

...

Further arguments (unused).

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).


chjackson/msm documentation built on March 3, 2024, 1:05 a.m.