
Transition matrix with per-cell bootstrap standard errors
Source:R/transitions.R
boot_transition.RdLike transition_matrix(), but every cell also gets a standard error and confidence interval
from the bootstrap replicate weights of a longitudinal-weight bootstrap_weights() object, by
re-tabulating the flow within each replicate. The recipe is re-run per replicate, so the
uncertainty of the longitudinal weighting propagates into the flow SEs.
Usage
boot_transition(
boot,
from,
to,
states = NULL,
format = c("row", "col", "joint", "counts")
)Arguments
- boot
a
weightflow_bootfrombootstrap_weights()on the longitudinal recipe.- from, to, states, format
as in
transition_matrix().