View source: R/specification.R
| define_variable | R Documentation |
Define one simulated variable
define_variable(
name,
formula,
variance = 0,
distribution = .simulab_distributions,
link = c("identity", "log", "logit")
)
name |
Variable name. |
formula |
Numeric value, expression string, or one-sided formula giving
the distribution's primary argument. For most families that is the mean or
probability, but |
variance |
Variance, dispersion, precision, trial count, category labels, or distribution-specific secondary parameter. |
distribution |
Distribution name. |
link |
Link applied to |
A one-row simulab_spec base data.frame.
define_variable(
name = "score",
formula = 50,
variance = 100,
distribution = "normal"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.