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, ...)

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

Author

João Macalós

Examples

# 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) )
#> [[1]] #> Ra ~ sfcr_random("rnorm", mean = 0, sd = 0.05) #> <environment: 0xccac750> #> #> attr(,"class") #> [1] "sfcr_set" "list"