examples/example_frac_nodemog module¶
Executable example demonstrating FRAC estimation without demographics.
The example runs two estimations from TOML configuration files in frac_blp/configs/:
first on simulated data (simulated.toml), then on a data file read through the
real-data interface (example_config.toml). Edit those files to change the dimensions,
parameters and estimation options.
run_example(simulated_config=CONFIG_DIR / 'simulated.toml', real_config=CONFIG_DIR / 'example_config.toml')
¶
Estimate FRAC without demographics on simulated data, then on a data file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
simulated_config
|
Path
|
TOML file describing the simulation and the
estimation options. Default is |
CONFIG_DIR / 'simulated.toml'
|
real_config
|
Path
|
TOML file describing the data file and the estimation
options. Default is |
CONFIG_DIR / 'example_config.toml'
|
Source code in frac_blp/examples/example_frac_nodemog.py
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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |