sfcr_random: Generate random sequences inside 'sfcr_set()'

Description Usage Arguments Author(s) Examples

View source: R/utils-solvers.R

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

1

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(s)

João Macalós

Examples

1
2
3
4
5
# 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)
)

sfcr documentation built on Oct. 11, 2021, 9:09 a.m.