View source: R/specification.R
| repeat_variables | R Documentation |
Define repeated variables
repeat_variables(
n,
prefix,
formula,
variance = 0,
distribution = .simulab_distributions,
link = c("identity", "log", "logit")
)
n |
Number of variables. |
prefix |
Variable-name prefix. |
formula, variance, distribution, link |
Arguments passed to
|
A simulab_spec base data.frame with one row per repeated
variable.
specification <- repeat_variables(
n = 3, prefix = "item", formula = "0", variance = "1", distribution = "normal"
)
specification
head(simulate_study(n = 20, specification = specification, seed = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.