| define_missingnesses | R Documentation |
Combine missingness definitions into a specification
define_missingnesses(...)
... |
Either the columns of a specification given as named vectors
( In the column form, |
A simulab_missing_spec base data.frame with one row per target
variable, in the order given, and the columns of define_missingness():
variable, formula, link, baseline and monotone. Target variables
must be unique.
# One call, named arguments, one row per target variable.
define_missingnesses(
variable = c("outcome", "baseline"),
formula = c("0.2", "0.1")
)
# `monotone` keeps a unit missing at every later period once it drops out.
define_missingnesses(
variable = c("outcome", "baseline"),
formula = c("0.2", "0.1"),
monotone = TRUE
)
# Definitions built one at a time are still accepted.
define_missingnesses(
define_missingness("outcome", formula = "0.2"),
define_missingness("baseline", formula = "0.1")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.