Description Usage Arguments Author(s)
View source: R/ffd_opt_datagen.R
Generates arbitrary dataframes needed for discrete as well as continuous optimization problems when there are N individuals?
1 2 3 4 5 6 7 8 9 10 11 | ffd_draw_n_alpha(
fl_w_dollar = 100,
it_w_units_avg = 5,
fl_eh_max_inc_i = 5,
fl_min_max_eh_inc_ratio = 1.5,
fl_disc_cts_match_ratio = 1.1,
fl_A_i_alpha_i1_ratio = 2,
fl_A_i_relative_ratio = 3,
it_N = 2,
it_rand_seed = 123
)
|
fl_w_dollar |
float amount of aggregate resources in dollar for both individuals |
it_w_units_avg |
float number of goods for cts at max, approxi number for dis |
fl_eh_max_inc_i |
float maximum increase EH for one individual |
fl_min_max_eh_inc_ratio |
float ratio of maximum and minimum outcome increase |
fl_disc_cts_match_ratio |
float if 1, disc unit = it_w_units_avg |
fl_A_i_alpha_i1_ratio |
float A_i divide the alphi_il ratio, discrete set this |
fl_A_i_relative_ratio |
float Relative ratio of A between the two individuals |
it_N |
integer the number of individuals |
it_rand_seed |
integer random seed |
Fan Wang, http://fanwangecon.github.io
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.