Description Usage Arguments Value Author(s) References Examples
View source: R/ff_dist_integrate.R
Supose epsilon follows the normal distribution. Draw it_eps number of normal shocks that best approximates the normal distribution. Outputs a number of statistics to check to quality of approximation
1 | ff_dist_integrate_normal(fl_eps_mean = 0, fl_eps_sd = 1, it_eps = 10)
|
fl_eps_mean |
float mean of the normal distribution |
fl_eps_sd |
float sd of the normal distribution |
it_eps |
integer number of discretized points to return |
a list of normal draw arrays and checks
ar_eps_val - An array of shock draws as Discrete Random Variable
ar_eps_prb - The probability mass for each discrete point
fl_cdf_total_approx - Approximated aggregate probability
fl_mean_approx - Approximated mean given draws array
fl_sd_approx - Approximated standard deviation given draws array
Fan Wang, http://fanwangecon.github.io
https://fanwangecon.github.io/REconTools/reference/ff_dist_integrate_normal.html https://github.com/FanWangEcon/REconTools/blob/master/R/ff_dist_integrate.R
1 2 3 4 5 6 7 | ff_dist_integrate_normal(fl_eps_mean=60, fl_eps_sd = 20, it_eps=3)
ff_dist_integrate_normal(fl_eps_mean=60, fl_eps_sd = 20, it_eps=5)
ff_dist_integrate_normal(fl_eps_mean=60, fl_eps_sd = 20, it_eps=7)
ff_dist_integrate_normal(fl_eps_mean=60, fl_eps_sd = 20, it_eps=9)
ff_dist_integrate_normal(fl_eps_mean=60, fl_eps_sd = 20, it_eps=11)
ff_dist_integrate_normal(fl_eps_mean=60, fl_eps_sd = 20, it_eps=13)
ff_dist_integrate_normal(fl_eps_mean=60, fl_eps_sd = 20, it_eps=15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.