I am using Synthea to generate synthetic populations using the default county demographics for Massachusetts.
How are these json config files created? Specifically, how could I create them for a different US State?
First, you need to obtain several publicly available data files and place them into your ./resources
folder.
I think you answered some of your own question over in this GitHub issue. But in case someone finds the question here, you need four different files.
“subcounty population estimates for towns and cities” https://www.census.gov/data/datasets/2016/demo/popest/total-cities-and-towns.html
“county population estimates by age, gender, race, ethnicity” https://www.census.gov/data/datasets/2016/demo/popest/counties-detail.html
“income data” https://factfinder.census.gov/faces/tableservices/jsf/pages/productview.xhtml?pid=ACS_15_5YR_S1901&prodType=table
“Education data” https://factfinder.census.gov/faces/tableservices/jsf/pages/productview.xhtml?pid=ACS_15_5YR_S1501&prodType=table
Once you obtain the files for the US State you are interested in:
./resources
foldergit checkout other_usa_states
The ability to process other states is not currently within the master branch in GitHub.bundle exec rake synthea:census
This will process the files in ./resources
(you may need to rename the files) and generate the JSON configuration files into ./config
bundle exec rake synthea:generate[XXX.json]
where XXX.json
is the name of the county file within the ./config
folder that you want to generate.Caveats:
XXXXX
Those issues will be fixed in the future.