| print.msdata | R Documentation |
Prints a concise validation summary for an msdata object, including
patient and interval totals and an observed-transition table in the original
state-definition order. Use head() to display actual data rows.
## S3 method for class 'msdata'
print(x, ...)
x |
An |
... |
Ignored. |
x, invisibly.
The printout is descriptive and does not refit or revalidate a modified
object. Re-run prepare_data() after changing rows or metadata.
ms <- define_multistate(c("A", "B"), "B", list(A = "B"))
dat <- data.frame(id = 1:3, x = 1:3, time_B = 1:3,
censor = NA_real_)
long <- prepare_data(dat, "id", ms, list(B = "time_B"), "censor", "x")
print(long)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.