Description Usage Arguments Examples
function
description.
1 2 3 | model_response_lm(model_frame, formula = attr(model_frame, "formula"),
link_inv = replicate(length(formula), identity), generator = rnorm,
responses = c("response"), effects_save = FALSE, seed = NULL)
|
model_frame |
A |
formula |
An optional list of formulas to simulate the parameters of the response variables. |
link_inv |
A list of function representing the inverse link function for the parameters. |
generator |
Function to generate the response variables given the parameters |
responses |
a numeric value indicating the number of response or a character vector indicating the names of the response variables |
effects_save |
Optional logical argument to save or not generated random effects |
seed |
Seed to be defined with function |
1 2 3 4 5 6 | formula <- list(
mean ~ I(0.5 * x1) : I(x2) + re(city, 1, 2),
sd ~ I(1)
)
model_frame <- model_frame(formula, n = 10)
model_response_lm(model_frame)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.