bn_node | R Documentation |
Specify a variable node in the network
bn_node(variable_formula, missing_rate = ~0, keep = TRUE, needs = character())
variable_formula |
A RHS-only formula specified how to simulate that variable. Use |
missing_rate |
A RHS-only formula. This specifies how missing values should be distributed.
Can use a simple proportion such as |
keep |
logical. Should this variable be kept in the final simulated output or not |
needs |
A character vector of variables. If any variables given in |
Object of class node
and list
.
bn_node(variable_formula = ~floor(rnorm(n=..n, mean=60, sd=15)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.