sim_resp {saeSim} | R Documentation |
Response component
Description
One of the components which can be added to a sim_setup
.
Usage
sim_resp(simSetup, respFun)
sim_resp_eq(simSetup, ...)
Arguments
simSetup |
a |
respFun |
a function constructing the response variable |
... |
< The value can be:
|
Details
Potentially you can define an respFun
yourself. Take care that it only has one argument, named dat
, and returns the a data.frame
.
See Also
agg_all
, sim_gen
, sim_comp_pop
, sim_sample
, , sim_comp_sample
Examples
base_id() %>% sim_gen_x() %>% sim_gen_e() %>% sim_resp_eq(y = 100 + 2 * x + e)
[Package saeSim version 0.11.0 Index]