Comments (2)
WITH tmp AS(
SELECT a.geotype, a.geoid, a.c, a.e, a.m, a.p, a.z, a.variable, b.c, b.e, b.m, b.p, b.z
FROM housing a
RIGHT JOIN staging.housing b
ON a.geotype = b.geotype
AND a.geogname = b.geogname
AND a.geoid = b.geoid
AND a.dataset = b.dataset
AND a.variable = b.variable
WHERE (b.e = b.p
AND b.e IS NOT NULL
AND a.p != b.p)
OR (b.m = b.z
AND b.m IS NOT NULL
AND a.z != b.z
)
)
SELECT geotype, variable, COUNT(*) FROM tmp
GROUP BY geotype, variable
ORDER BY COUNT(*) DESC;
- After exploring the datasets, I noticed there are many records having the same value for e and p and only a couple of them have the same value for e and z.
- Majority of these records come from
geotype
'CT2010', some are from 'Boro2010' and a handful from 'City2010' - on average, only 5% of the total records are affected by this issue.
- for the records having e = p, their p values are supposed to be '100'
from db-acs.
see #10
from db-acs.
Related Issues (20)
- Find total variables and make p 100 percent HOT 2
- Estimation that involves subtraction
- CvEm16pl2 --> percentage estimate set to 100 for all NTAs
- Social columns wildly off HOT 4
- calculation errors on population's end? HOT 1
- percentage estimate set to 100 HOT 2
- demo - AsnEast : for a lot of demographic variables, we are seeing lots of 11.0 for MOE fields. Should we exclude them??? HOT 3
- demo - c,e,m calculated correctly, but not p and z (wrong total?) HOT 2
- New total lookup function HOT 1
- 2018 update HOT 1
- 2018 update feedback HOT 1
- MOEs for zero-estimate data set to null HOT 1
- Change intermediate table naming -- low priority
- Check that all instances of collapsing variables is summing independent variables
- Y2006-2010 row count doesn't match Y2014-2018 HOT 5
- Don't inflate 2006-2010 ACS values because consuming app should do this
- 2014-2018 new issues HOT 9
- Catch controlled variables
- Adding CD level Aggregation for Community Profiles purpose
- python package for calculating pff
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 db-acs.