| define_condition | R Documentation |
Define a conditional data-generation rule
define_condition(
variable,
condition,
formula,
variance = 0,
distribution = .simulab_distributions,
link = c("identity", "log", "logit")
)
variable |
Variable to create or replace. |
condition |
Logical expression identifying affected rows. |
formula, variance, distribution, link |
Generation arguments used for affected rows. |
A one-row simulab_condition_spec base data.frame.
define_condition(
"outcome", condition = "group == 1",
formula = "2", variance = "1", distribution = "normal"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.