Comments (4)
Sounds good. Re your question why would one use household weights other than the seed, PUMS is a solid data source by itself, and in most applications it would be enough to just use the household expansion weights it provides to have a reasonable estimate of a population statistic that match the totals at PUMA level.
BTW, if you really need to run synthesis for tracts within a lower/higher level of allocation geography that does not match PUMA, you could possibly subsample the table, or scale household weights in the table proportionally to the expected totals for that area.
from doppelganger.
ccing my colleague @josiekre
from doppelganger.
Hi Greg, Hi Josie,
the data you are feeding into the algorithm is inconsistent, in a sense that household weights do not sum (not even approximately) to the same values as the marginals data for the total number of households. It results in the doppelganger allocation algorithm to return a population with the total number of households that sums to a value in between the two. When you decreased the total sum in controls, it has returned a population with a lower sum too, accordingly.
One option is to fix the input data to make sure weights match the marginals (can be approx). Other option is to tune the internal parameter https://github.com/sidewalklabs/doppelganger/blob/master/doppelganger/allocation.py#L170
to make it converge to either initial PUMS weights or the marginals. Hope this helps,
Alexei
from doppelganger.
Interesting; so, if I understand correctly doppelganger considers both the PUMA weighted population in PUMS and the ACS tract-level population. It seems as though there will be times when we want to synthesize a population for only part of a PUMA, meaning that the controls should (for lack of a better word) control. Or, if we are looking at an alternative population scenario, changing both the weights and the controls is duplicative.
I just cranked up the gamma parameter you identified (I will send you a PR exposing that parameter), but it of course has the consequence of substantially increasing the run time. Is there a specific reason why I would want to respect or consider the PUMA weights in this process, other than as a seed?
from doppelganger.
Related Issues (20)
- Preferred communication medium? HOT 1
- Pomegrenate issues on CentOS 7.3 HOT 5
- Household indexing is confusing HOT 3
- Modifying inputs.py HOT 6
- 1 year vs 5 year PUMS input difference HOT 1
- doppelganger.person_structure -> pomegranite.BayesianNetwork HOT 1
- Add state & county IDs HOT 1
- Segmenting on an input variable that allows the None type causes a sorting error HOT 2
- Solver variable bin lineup between inputs and marginals
- Error in doppelganger_example_simple.ipynb HOT 6
- nosetests HOT 1
- test_balance_cvx_relaxed failing on new versions of cvxpy HOT 3
- Pomegranate pinned to old version HOT 2
- marginals dtypes HOT 1
- keep leading zeros in code columns - dtypes HOT 3
- IEEE Computer Society Magazine for an upcoming edition on Governments in the Age of Big Data and Smart Cities(December 2018)
- Length mismatch HOT 6
- ---
- issue with cvxpy.Variable functions in example code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doppelganger.