View source: R/formulas_splines.R
| linear_formula | R Documentation |
Construct a linear simulation formula
linear_formula(coefficients, variables)
coefficients |
Coefficients with an optional intercept. |
variables |
Variable names. When there is one additional coefficient, the first is the intercept. |
A one-row simulab_formula base data.frame.
linear_formula(coefficients = c(1, 0.5, -0.3), variables = c("x1", "x2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.