Description Usage Arguments Details See Also Examples
One of the components which can be added to a sim_setup
.
1 2 3 | sim_resp(simSetup, respFun)
sim_resp_eq(simSetup, ...)
|
simSetup |
a |
respFun |
a function constructing the response variable |
... |
< The value can be:
|
Potentially you can define an respFun
yourself. Take care that it only has one argument, named dat
, and returns the a data.frame
.
agg_all
, sim_gen
, sim_comp_pop
, sim_sample
, , sim_comp_sample
1 | base_id() %>% sim_gen_x() %>% sim_gen_e() %>% sim_resp_eq(y = 100 + 2 * x + e)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.