sfcr_random {sfcr} | R Documentation |
sfcr_set()
This function can only be used inside sfcr_set()
when generating variables.
It smartly guesses the length of the sfcr_baseline()
model or of the
sfcr_shock()
that it is inserted.
sfcr_random(.f, ...)
.f |
This argument accepts three options: "rnorm", "rbinom", and "runif",
and implement the respective functions from the built-in |
... |
Extra arguments to be passed to the |
João Macalós
# Create a random normal series to pass along an endogenous series
# Example taken from model PC EXT 2.
sfcr_set(
Ra ~ sfcr_random("rnorm", mean=0, sd=0.05)
)