sfcr_random: Generate random sequences inside sfcr_set()
Description
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.
Usage
sfcr_random(.f, ...)
Arguments
.f
This argument accepts three options: "rnorm", "rbinom", and "runif",
and implement the respective functions from the built-in stats package.
...
Extra arguments to be passed to the stats generator functions
# NOT RUN {# 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)
)
# }