simulate_frac_nodemog_data module¶
Helper script to simulate FRAC datasets used in tutorials.
simulate_frac_nodemog_data(T=50, J=20, n_X1_exo=1, n_X1_endo=1, n_X2_exo=0, n_X2_endo=1, n_Z=1, sigma_x=1.0, sigma_xi=1.0, rho_x_xi=np.sqrt(0.5), rho_x_z=np.sqrt(0.5), betas=np.array([-4.3, 1.0]), sigmas=np.array([1.0]))
¶
Simulate FRAC data with endogenous random-coefficient regressors.
Returns:
| Name | Type | Description |
|---|---|---|
FracNoDemogSimulatedData |
FracNoDemogSimulatedData
|
Simulated dataset ready for FRAC estimation. |
Source code in frac_blp/simulate_frac_nodemog_data.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |