diff --git a/statvar_imports/CensusSAHIE/README.md b/statvar_imports/CensusSAHIE/README.md new file mode 100644 index 000000000..9eea5deb8 --- /dev/null +++ b/statvar_imports/CensusSAHIE/README.md @@ -0,0 +1,20 @@ +# CensusSAHIE + +- source: https://www.census.gov/data/datasets/time-series/demo/sahie/estimates-acs.html + +- how to download data: Manually download from source based on filter - `CensusSAHIE`. + +- type of place: Country + +- statvars: Demographics + +- years: 2008 to 2022 + +- place_resolution: By PVmap. + +### How to run: + +`python3 stat_var_processor.py --input_data=.csv --pv_map=statvar_imports/CensusSHIE/pvmap.csv --config=statvar_imports/CensusSHIE//metadata.csv --output_path=` + +#### Example +`python3 stat_var_processor.py --input_data=statvar_imports/CensusSHIE/test_data/sample_input/sahie.csv --pv_map=statvar_imports/CensusSHIE/pvmap.csv --config=statvar_imports/CensusSHIE/metadata.csv --output_path=statvar_imports/CensusSHIE/test_data/sample_output/sahie` diff --git a/statvar_imports/CensusSAHIE/metadata.csv b/statvar_imports/CensusSAHIE/metadata.csv new file mode 100644 index 000000000..2745c1830 --- /dev/null +++ b/statvar_imports/CensusSAHIE/metadata.csv @@ -0,0 +1,18 @@ +parameter,value +url,sahie +description,Small Area Health Insurance Estimates (SAHIE) +#place_type,Country +#places_within, +start_date,2008 +end_date,2022 +release_frequency,1Year +process, +comments, +output_columns,"observationAbout, observationDate, value, variableMeasured,observationPeriod, measurementMethod" +#places_resolved_csv, +mapped_rows,1 +mapped_columns,9 +header_rows,1 +drop_statvars_without_svobs,0 +debug,1 +#input_rows,5 diff --git a/statvar_imports/CensusSAHIE/pvmap.csv b/statvar_imports/CensusSAHIE/pvmap.csv new file mode 100644 index 000000000..022a9ca9b --- /dev/null +++ b/statvar_imports/CensusSAHIE/pvmap.csv @@ -0,0 +1,43 @@ +key,p1,v1,p2,v2,p3,v3,p4,v4,p5,v5,p6,v6,p7,v7 +,,,,,,,,,,,,,, +state_name,#observationAbout,{Data},,,,,,,,,,,, +county_name,,,,,,,,,,,,,, +year,observationDate,{Number},observationPeriod,P1Y,,,,,,,,,, +version,#Eval,Fips=StateFips + CountyFips if GeoCat == '50' else StateFips,,,,,,,,,,,, +statefips,#Format,StateFips={Number:02d},,,,,,,,,,,, +countyfips,#Format,CountyFips={Number:03d},,,,,,,,,,,, +geocat,GeoCat,{Number},,,,,,,,,,,, +sexcat:1,gender,Male,,,,,,,,,,,, +sexcat:2,gender,Female,,,,,,,,,,,, +NIPR,value,{Number},populationType,Person,observationAbout,geoId/{Fips},,,,,,,, +nipr_moe,measuredProperty,count,statType,marginOfError,value,{Number},populationType,Person,observationAbout,geoId/{Fips},,,, +agecat:0,age,[- 64 Years],,,,,,,,,,,, +agecat:1,age,[18 64 Years],,,,,,,,,,,, +agecat:2,age,[40 64 Years],,,,,,,,,,,, +agecat:3,age,[50 64 Years],,,,,,,,,,,, +agecat:4,age,[- 18 Years],,,,,,,,,,,, +agecat:5,age,[21 64 Years],,,,,,,,,,,, +racecat:1,race,WhiteAlone,,,,,,,,,,,, +racecat:2,race,BlackOrAfricanAmericanAlone,,,,,,,,,,,, +racecat:3,race,HispanicOrLatino,,,,,,,,,,,, +racecat:4,race,AmericanIndianAndAlaskaNativeAlone,,,,,,,,,,,, +racecat:5,race,AsianAlone,,,,,,,,,,,, +racecat:6,race,NativeHawaiianAndOtherPacificIslanderAlone,,,,,,,,,,,, +racecat:7,race,TwoOrMoreRaces,,,,,,,,,,,, +iprcat:1,familyIncome,[- 2 RatioToPovertyLine],measurementMethod,USCensusPovertyThreshold,,,,,,,,,, +iprcat:2,familyIncome,[- 2.5 RatioToPovertyLine],measurementMethod,USCensusPovertyThreshold,,,,,,,,,, +iprcat:3,familyIncome,[- 1.38 RatioToPovertyLine],measurementMethod,USCensusPovertyThreshold,,,,,,,,,, +iprcat:4,familyIncome,[- 4 RatioToPovertyLine],measurementMethod,USCensusPovertyThreshold,,,,,,,,,, +iprcat:5,familyIncome,[1.38 4 RatioToPovertyLine],measurementMethod,USCensusPovertyThreshold,,,,,,,,,, +NUI,measuredProperty,count,healthInsurance,NoHealthInsurance,statType,measuredValue,value,{Number},populationType,Person,observationAbout,geoId/{Fips},, +nui_moe,measuredProperty,count,healthInsurance,NoHealthInsurance,statType,marginOfError,value,{Number},populationType,Person,observationAbout,geoId/{Fips},, +NIC,measuredProperty,count,healthInsurance,WithHealthInsurance,statType,measuredValue,value,{Number},populationType,Person,observationAbout,geoId/{Fips},, +nic_moe,measuredProperty,count,healthInsurance,WithHealthInsurance,statType,marginOfError,value,{Number},populationType,Person,observationAbout,geoId/{Fips},, +PCTUI,measuredProperty,percent,healthInsurance,NoHealthInsurance,statType,measuredValue,value,{Number},populationType,Person,observationAbout,geoId/{Fips},, +pctui_moe,measuredProperty,percent,healthInsurance,NoHealthInsurance,statType,marginOfError,value,{Number},populationType,Person,observationAbout,geoId/{Fips},, +PCTIC,measuredProperty,percent,healthInsurance,WithHealthInsurance,statType,measuredValue,value,{Number},populationType,Person,observationAbout,geoId/{Fips},, +pctic_moe,measuredProperty,percent,healthInsurance,WithHealthInsurance,statType,marginOfError,value,{Number},populationType,Person,observationAbout,geoId/{Fips},, +#PCTELIG,measuredProperty,percent,healthInsurance,NoHealthInsurance,statType,measuredValue,value,{Number},populationType,Person,observationAbout,geoId/{Fips},familyIncome,"""""" +#pctelig_moe,measuredProperty,percent,healthInsurance,NoHealthInsurance,statType,marginOfError,value,{Number},populationType,Person,observationAbout,geoId/{Fips},familyIncome,"""""" +#PCTLIIC,measuredProperty,percent,healthInsurance,WithHealthInsurance,statType,measuredValue,value,{Number},populationType,Person,observationAbout,geoId/{Fips},familyIncome,"""""" +#pctliic_moe,measuredProperty,percent,healthInsurance,WithHealthInsurance,statType,marginOfError,value,{Number},populationType,Person,observationAbout,geoId/{Fips},familyIncome,"""""" diff --git a/statvar_imports/CensusSAHIE/test_data/sample_input/sahie.csv b/statvar_imports/CensusSAHIE/test_data/sample_input/sahie.csv new file mode 100644 index 000000000..fd06d6cc3 --- /dev/null +++ b/statvar_imports/CensusSAHIE/test_data/sample_input/sahie.csv @@ -0,0 +1,21 @@ +year,version,statefips,countyfips,geocat,agecat,racecat,sexcat,iprcat,NIPR,nipr_moe,NUI,nui_moe,NIC,nic_moe,PCTUI,pctui_moe,PCTIC,pctic_moe,PCTELIG,pctelig_moe,PCTLIIC,pctliic_moe,state_name,county_name +2022, ,17,61,50,5,0,2,5,1430,85,107,26,1323,83,7.5,1.8,92.5,1.8,3.4,0.8,42.4,2.7,Illinois ,Greene County +2022, ,16,0,40,0,1,0,3,196732,5684,23685,2288,173047,5465,12,1.1,88,1.1,1.9,0.2,14.1,0.4,Idaho , +2022, ,37,189,50,1,0,0,1,11714,557,2603,463,9111,637,22.2,3.8,77.8,3.8,8.2,1.5,28.6,2.0,North Carolina ,Watauga County +2022, ,20,155,50,2,0,1,0,8959,0,940,217,8019,217,10.5,2.4,89.5,2.4,10.5,2.4,89.5,2.4,Kansas ,Reno County +2022, ,31,79,50,1,0,2,2,7081,375,1184,295,5897,427,16.7,4.1,83.3,4.1,7.0,1.7,34.7,2.5,Nebraska ,Hall County +2022, ,8,31,50,5,0,1,0,244004,0,24944,2833,219060,2833,10.2,1.2,89.8,1.2,10.2,1.2,89.8,1.2,Colorado ,Denver County +2022, ,16,85,50,1,0,2,0,3388,0,365,82,3023,82,10.8,2.4,89.2,2.4,10.8,2.4,89.2,2.4,Idaho ,Valley County +2022, ,45,67,50,3,0,0,5,2379,174,281,73,2098,173,11.8,3.0,88.2,3.0,5.2,1.4,39.0,3.2,South Carolina ,Marion County +2022, ,31,153,50,5,0,2,3,5424,568,632,189,4792,543,11.7,3.3,88.3,3.3,1.1,0.3,8.6,1.0,Nebraska ,Sarpy County +2022, ,41,25,50,3,0,2,3,192,44,18,12,174,41,9.4,5.4,90.6,5.4,2.3,1.5,22.3,5.3,Oregon ,Harney County +2022, ,36,83,50,2,0,0,1,9142,546,866,223,8276,529,9.5,2.3,90.5,2.3,1.7,0.4,16.3,1.0,New York ,Rensselaer County +2022, ,25,1,50,5,0,2,4,25245,1008,1075,294,24170,1007,4.3,1.2,95.7,1.2,1.8,0.5,40.7,1.7,Massachusetts ,Barnstable County +2022, ,17,1,50,3,0,1,3,723,123,74,40,649,116,10.2,5.2,89.8,5.2,1.2,0.6,10.5,1.9,Illinois ,Adams County +2022, ,5,31,50,0,0,0,4,64905,1135,8180,1103,56725,1413,12.6,1.7,87.4,1.7,8.7,1.2,60.4,1.5,Arkansas ,Craighead County +2022, ,21,115,50,1,0,0,5,5348,228,432,70,4916,221,8.1,1.3,91.9,1.3,3.4,0.5,38.2,1.7,Kentucky ,Johnson County +2022, ,54,15,50,5,0,1,3,629,71,83,30,546,66,13.2,4.3,86.8,4.3,4.1,1.5,27.0,3.3,West Virginia ,Clay County +2022, ,51,15,50,1,0,1,1,4171,355,692,183,3479,339,16.6,4.1,83.4,4.1,3.2,0.8,15.9,1.5,Virginia ,Augusta County +2022, ,12,133,50,0,0,0,1,8108,271,1572,231,6536,301,19.4,2.7,80.6,2.7,8.4,1.2,35,1.6,Florida ,Washington County +2022, ,17,17,50,4,0,0,0,3191,0,127,38,3064,38,4.0,1.2,96.0,1.2,4.0,1.2,96.0,1.2,Illinois ,Cass County +2022, ,24,31,50,5,0,0,2,120860,3556,29701,2744,91159,3763,24.6,2.2,75.4,2.2,5.0,0.5,15.3,0.6,Maryland ,Montgomery County diff --git a/statvar_imports/CensusSAHIE/test_data/sample_output/sahie.csv b/statvar_imports/CensusSAHIE/test_data/sample_output/sahie.csv new file mode 100644 index 000000000..2017e36b9 --- /dev/null +++ b/statvar_imports/CensusSAHIE/test_data/sample_output/sahie.csv @@ -0,0 +1,201 @@ +observationAbout,observationDate,value,variableMeasured,observationPeriod,measurementMethod +geoId/17061,2022,1430,dcid:Count_Person_21To64Years_RatioToPovertyLine1.38To4_Female,P1Y,USCensusPovertyThreshold +geoId/17061,2022,85,dcid:MarginOfError_Count_Person_21To64Years_1.38To4RatioToPovertyLine_Female,P1Y,USCensusPovertyThreshold +geoId/17061,2022,107,dcid:dc/n5sm9gygvgcl3,P1Y,USCensusPovertyThreshold +geoId/17061,2022,26,dcid:dc/rxe7grp3tw3p9,P1Y,USCensusPovertyThreshold +geoId/17061,2022,1323,dcid:dc/etr2w70xl7k83,P1Y,USCensusPovertyThreshold +geoId/17061,2022,83,dcid:dc/l9mmfwxm6xcb2,P1Y,USCensusPovertyThreshold +geoId/17061,2022,7.5,dcid:dc/7rd2jfh28lbvb,P1Y,USCensusPovertyThreshold +geoId/17061,2022,1.8,dcid:dc/rpcf84l0ztwb1,P1Y,USCensusPovertyThreshold +geoId/17061,2022,92.5,dcid:dc/n17vp3cjn1xn8,P1Y,USCensusPovertyThreshold +geoId/17061,2022,1.8,dcid:dc/p5w4jb6grc8mh,P1Y,USCensusPovertyThreshold +geoId/16,2022,196732,dcid:Count_Person_Upto64Years_RatioToPovertyLineUpto1.38_WhiteAlone,P1Y,USCensusPovertyThreshold +geoId/16,2022,5684,dcid:MarginOfError_Count_Person_64OrLessYears_1.38OrLessRatioToPovertyLine_WhiteAlone,P1Y,USCensusPovertyThreshold +geoId/16,2022,23685,dcid:dc/sw9ceppkpm0z2,P1Y,USCensusPovertyThreshold +geoId/16,2022,2288,dcid:dc/jz0kfd50zzgq8,P1Y,USCensusPovertyThreshold +geoId/16,2022,173047,dcid:dc/brllzf3jmhc46,P1Y,USCensusPovertyThreshold +geoId/16,2022,5465,dcid:dc/bcnhk62lknhkb,P1Y,USCensusPovertyThreshold +geoId/16,2022,12,dcid:dc/pdm7785flbqb7,P1Y,USCensusPovertyThreshold +geoId/16,2022,1.1,dcid:dc/setgy2fswnyj4,P1Y,USCensusPovertyThreshold +geoId/16,2022,88,dcid:dc/crgb194v8jf67,P1Y,USCensusPovertyThreshold +geoId/16,2022,1.1,dcid:dc/x3q5k2kgwrkfg,P1Y,USCensusPovertyThreshold +geoId/37189,2022,11714,dcid:Count_Person_18To64Years_RatioToPovertyLineUpto2,P1Y,USCensusPovertyThreshold +geoId/37189,2022,557,dcid:MarginOfError_Count_Person_18To64Years_2OrLessRatioToPovertyLine,P1Y,USCensusPovertyThreshold +geoId/37189,2022,2603,dcid:Count_Person_18To64Years_RatioToPovertyLineUpto2_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/37189,2022,463,dcid:dc/4mm1l3gwy67pf,P1Y,USCensusPovertyThreshold +geoId/37189,2022,9111,dcid:Count_Person_18To64Years_RatioToPovertyLineUpto2_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/37189,2022,637,dcid:dc/s47hbve6kdych,P1Y,USCensusPovertyThreshold +geoId/37189,2022,22.2,dcid:Percent_Person_18To64Years_RatioToPovertyLineUpto2_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/37189,2022,3.8,dcid:dc/h815ctmwvybp6,P1Y,USCensusPovertyThreshold +geoId/37189,2022,77.8,dcid:Percent_Person_18To64Years_RatioToPovertyLineUpto2_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/37189,2022,3.8,dcid:dc/lr5btb1xvb2z6,P1Y,USCensusPovertyThreshold +geoId/20155,2022,8959,dcid:Count_Person_40To64Years_Male,P1Y, +geoId/20155,2022,0,dcid:MarginOfError_Count_Person_40To64Years_Male,P1Y, +geoId/20155,2022,940,dcid:Count_Person_40To64Years_Male_NoHealthInsurance,P1Y, +geoId/20155,2022,217,dcid:dc/qc53dbn5qmf13,P1Y, +geoId/20155,2022,8019,dcid:Count_Person_40To64Years_Male_WithHealthInsurance,P1Y, +geoId/20155,2022,217,dcid:dc/r7zgp0bdw888f,P1Y, +geoId/20155,2022,10.5,dcid:Percent_Person_40To64Years_Male_NoHealthInsurance,P1Y, +geoId/20155,2022,2.4,dcid:dc/09sxf5c50l1p7,P1Y, +geoId/20155,2022,89.5,dcid:Percent_Person_40To64Years_Male_WithHealthInsurance,P1Y, +geoId/20155,2022,2.4,dcid:dc/vpbxjjs0fn69,P1Y, +geoId/31079,2022,7081,dcid:Count_Person_18To64Years_RatioToPovertyLineUpto2.5_Female,P1Y,USCensusPovertyThreshold +geoId/31079,2022,375,dcid:MarginOfError_Count_Person_18To64Years_2.5OrLessRatioToPovertyLine_Female,P1Y,USCensusPovertyThreshold +geoId/31079,2022,1184,dcid:dc/9y3g7ngmjbwy9,P1Y,USCensusPovertyThreshold +geoId/31079,2022,295,dcid:dc/3vjjztynnbc8g,P1Y,USCensusPovertyThreshold +geoId/31079,2022,5897,dcid:dc/7908n3q40j8n,P1Y,USCensusPovertyThreshold +geoId/31079,2022,427,dcid:dc/zc79pbw3vphyg,P1Y,USCensusPovertyThreshold +geoId/31079,2022,16.7,dcid:dc/580lp655hysv,P1Y,USCensusPovertyThreshold +geoId/31079,2022,4.1,dcid:dc/sxpfeb19hp45c,P1Y,USCensusPovertyThreshold +geoId/31079,2022,83.3,dcid:dc/ymp05py9vf2z5,P1Y,USCensusPovertyThreshold +geoId/31079,2022,4.1,dcid:dc/x1xjt1g2743gb,P1Y,USCensusPovertyThreshold +geoId/08031,2022,244004,dcid:Count_Person_21To64Years_Male,P1Y, +geoId/08031,2022,0,dcid:MarginOfError_Count_Person_21To64Years_Male,P1Y, +geoId/08031,2022,24944,dcid:Count_Person_21To64Years_Male_NoHealthInsurance,P1Y, +geoId/08031,2022,2833,dcid:dc/xs3fmb48ek36c,P1Y, +geoId/08031,2022,219060,dcid:Count_Person_21To64Years_Male_WithHealthInsurance,P1Y, +geoId/08031,2022,2833,dcid:dc/csw09cg7blcz9,P1Y, +geoId/08031,2022,10.2,dcid:Percent_Person_21To64Years_Male_NoHealthInsurance,P1Y, +geoId/08031,2022,1.2,dcid:dc/cg24m5mrmhe0f,P1Y, +geoId/08031,2022,89.8,dcid:Percent_Person_21To64Years_Male_WithHealthInsurance,P1Y, +geoId/08031,2022,1.2,dcid:dc/5949ndkwerxd5,P1Y, +geoId/16085,2022,3388,dcid:Count_Person_18To64Years_Female,P1Y, +geoId/16085,2022,0,dcid:MarginOfError_Count_Person_18To64Years_Female,P1Y, +geoId/16085,2022,365,dcid:Count_Person_18To64Years_Female_NoHealthInsurance,P1Y, +geoId/16085,2022,82,dcid:dc/vh54gj666jz09,P1Y, +geoId/16085,2022,3023,dcid:Count_Person_18To64Years_Female_WithHealthInsurance,P1Y, +geoId/16085,2022,82,dcid:dc/bkf3bk649l6t9,P1Y, +geoId/16085,2022,10.8,dcid:Percent_Person_18To64Years_Female_NoHealthInsurance,P1Y, +geoId/16085,2022,2.4,dcid:dc/gc4m0wdhhjnt7,P1Y, +geoId/16085,2022,89.2,dcid:Percent_Person_18To64Years_Female_WithHealthInsurance,P1Y, +geoId/16085,2022,2.4,dcid:dc/mbv624td3qf92,P1Y, +geoId/45067,2022,2379,dcid:Count_Person_50To64Years_RatioToPovertyLine1.38To4,P1Y,USCensusPovertyThreshold +geoId/45067,2022,174,dcid:MarginOfError_Count_Person_50To64Years_1.38To4RatioToPovertyLine,P1Y,USCensusPovertyThreshold +geoId/45067,2022,281,dcid:Count_Person_50To64Years_RatioToPovertyLine1.38To4_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/45067,2022,73,dcid:dc/xbtdm3zry3kl1,P1Y,USCensusPovertyThreshold +geoId/45067,2022,2098,dcid:Count_Person_50To64Years_RatioToPovertyLine1.38To4_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/45067,2022,173,dcid:dc/e4fkrxzmrg6h2,P1Y,USCensusPovertyThreshold +geoId/45067,2022,11.8,dcid:Percent_Person_50To64Years_RatioToPovertyLine1.38To4_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/45067,2022,3,dcid:dc/s213fgs049yc2,P1Y,USCensusPovertyThreshold +geoId/45067,2022,88.2,dcid:Percent_Person_50To64Years_RatioToPovertyLine1.38To4_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/45067,2022,3,dcid:dc/63bfzseft24v7,P1Y,USCensusPovertyThreshold +geoId/31153,2022,5424,dcid:Count_Person_21To64Years_RatioToPovertyLineUpto1.38_Female,P1Y,USCensusPovertyThreshold +geoId/31153,2022,568,dcid:MarginOfError_Count_Person_21To64Years_1.38OrLessRatioToPovertyLine_Female,P1Y,USCensusPovertyThreshold +geoId/31153,2022,632,dcid:dc/bn69n25vrjmwh,P1Y,USCensusPovertyThreshold +geoId/31153,2022,189,dcid:dc/bnhk7m1rdz4v3,P1Y,USCensusPovertyThreshold +geoId/31153,2022,4792,dcid:dc/hm2pd4d5dwb3c,P1Y,USCensusPovertyThreshold +geoId/31153,2022,543,dcid:dc/07n4bvhdl6kx4,P1Y,USCensusPovertyThreshold +geoId/31153,2022,11.7,dcid:dc/0y87mpydqbqvh,P1Y,USCensusPovertyThreshold +geoId/31153,2022,3.3,dcid:dc/rftt19hwjnj43,P1Y,USCensusPovertyThreshold +geoId/31153,2022,88.3,dcid:dc/73mxtey8t2lr5,P1Y,USCensusPovertyThreshold +geoId/31153,2022,3.3,dcid:dc/xzl250xef8g7h,P1Y,USCensusPovertyThreshold +geoId/41025,2022,192,dcid:Count_Person_50To64Years_RatioToPovertyLineUpto1.38_Female,P1Y,USCensusPovertyThreshold +geoId/41025,2022,44,dcid:MarginOfError_Count_Person_50To64Years_1.38OrLessRatioToPovertyLine_Female,P1Y,USCensusPovertyThreshold +geoId/41025,2022,18,dcid:dc/1qq4s1cmdb2b7,P1Y,USCensusPovertyThreshold +geoId/41025,2022,12,dcid:dc/7hbbs3d948b0b,P1Y,USCensusPovertyThreshold +geoId/41025,2022,174,dcid:dc/ne6bm4w2edr0g,P1Y,USCensusPovertyThreshold +geoId/41025,2022,41,dcid:dc/mfyjcwy5ywwd9,P1Y,USCensusPovertyThreshold +geoId/41025,2022,9.4,dcid:dc/w67p2mh54hm4c,P1Y,USCensusPovertyThreshold +geoId/41025,2022,5.4,dcid:dc/t626qrq3mgcj,P1Y,USCensusPovertyThreshold +geoId/41025,2022,90.6,dcid:dc/jxcyn2qyez748,P1Y,USCensusPovertyThreshold +geoId/41025,2022,5.4,dcid:dc/3pt2pzn8wkze1,P1Y,USCensusPovertyThreshold +geoId/36083,2022,9142,dcid:Count_Person_40To64Years_RatioToPovertyLineUpto2,P1Y,USCensusPovertyThreshold +geoId/36083,2022,546,dcid:MarginOfError_Count_Person_40To64Years_2OrLessRatioToPovertyLine,P1Y,USCensusPovertyThreshold +geoId/36083,2022,866,dcid:Count_Person_40To64Years_RatioToPovertyLineUpto2_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/36083,2022,223,dcid:dc/xmzjkfnxbrbhd,P1Y,USCensusPovertyThreshold +geoId/36083,2022,8276,dcid:Count_Person_40To64Years_RatioToPovertyLineUpto2_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/36083,2022,529,dcid:dc/e7k64efq9sewc,P1Y,USCensusPovertyThreshold +geoId/36083,2022,9.5,dcid:Percent_Person_40To64Years_RatioToPovertyLineUpto2_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/36083,2022,2.3,dcid:dc/y0wym56s2rq8f,P1Y,USCensusPovertyThreshold +geoId/36083,2022,90.5,dcid:Percent_Person_40To64Years_RatioToPovertyLineUpto2_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/36083,2022,2.3,dcid:dc/5n9shj3tdpdp2,P1Y,USCensusPovertyThreshold +geoId/25001,2022,25245,dcid:Count_Person_21To64Years_RatioToPovertyLineUpto4_Female,P1Y,USCensusPovertyThreshold +geoId/25001,2022,1008,dcid:MarginOfError_Count_Person_21To64Years_4OrLessRatioToPovertyLine_Female,P1Y,USCensusPovertyThreshold +geoId/25001,2022,1075,dcid:dc/eh5b4vpc3zmg4,P1Y,USCensusPovertyThreshold +geoId/25001,2022,294,dcid:dc/ywdchxj9tte1g,P1Y,USCensusPovertyThreshold +geoId/25001,2022,24170,dcid:dc/fy5vr7yw73s2h,P1Y,USCensusPovertyThreshold +geoId/25001,2022,1007,dcid:dc/cq3jbp58g2ydf,P1Y,USCensusPovertyThreshold +geoId/25001,2022,4.3,dcid:dc/8pykrt4sj9e25,P1Y,USCensusPovertyThreshold +geoId/25001,2022,1.2,dcid:dc/2mnw02cf2v2l7,P1Y,USCensusPovertyThreshold +geoId/25001,2022,95.7,dcid:dc/l5xtvtjz2kgp9,P1Y,USCensusPovertyThreshold +geoId/25001,2022,1.2,dcid:dc/11y5drxfz4h1f,P1Y,USCensusPovertyThreshold +geoId/17001,2022,723,dcid:Count_Person_50To64Years_RatioToPovertyLineUpto1.38_Male,P1Y,USCensusPovertyThreshold +geoId/17001,2022,123,dcid:MarginOfError_Count_Person_50To64Years_1.38OrLessRatioToPovertyLine_Male,P1Y,USCensusPovertyThreshold +geoId/17001,2022,74,dcid:dc/pgftcndwffeh1,P1Y,USCensusPovertyThreshold +geoId/17001,2022,40,dcid:dc/4ndmd8w9c1j32,P1Y,USCensusPovertyThreshold +geoId/17001,2022,649,dcid:dc/l3nznlfhm6dp8,P1Y,USCensusPovertyThreshold +geoId/17001,2022,116,dcid:dc/1dbgfylxzcwy2,P1Y,USCensusPovertyThreshold +geoId/17001,2022,10.2,dcid:dc/83dsjhj310kr6,P1Y,USCensusPovertyThreshold +geoId/17001,2022,5.2,dcid:dc/ql8zdq1rkptkh,P1Y,USCensusPovertyThreshold +geoId/17001,2022,89.8,dcid:dc/7j3t9gsfvz186,P1Y,USCensusPovertyThreshold +geoId/17001,2022,5.2,dcid:dc/wr5c8g3f50gg7,P1Y,USCensusPovertyThreshold +geoId/05031,2022,64905,dcid:Count_Person_Upto64Years_RatioToPovertyLineUpto4,P1Y,USCensusPovertyThreshold +geoId/05031,2022,1135,dcid:MarginOfError_Count_Person_64OrLessYears_4OrLessRatioToPovertyLine,P1Y,USCensusPovertyThreshold +geoId/05031,2022,8180,dcid:Count_Person_Upto64Years_RatioToPovertyLineUpto4_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/05031,2022,1103,dcid:dc/87c5gc88wsbcc,P1Y,USCensusPovertyThreshold +geoId/05031,2022,56725,dcid:Count_Person_Upto64Years_RatioToPovertyLineUpto4_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/05031,2022,1413,dcid:dc/qjyy5fsbtjpjg,P1Y,USCensusPovertyThreshold +geoId/05031,2022,12.6,dcid:Percent_Person_Upto64Years_RatioToPovertyLineUpto4_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/05031,2022,1.7,dcid:dc/n1sgd4hx9zxc6,P1Y,USCensusPovertyThreshold +geoId/05031,2022,87.4,dcid:Percent_Person_Upto64Years_RatioToPovertyLineUpto4_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/05031,2022,1.7,dcid:dc/qjqt9y291vtx7,P1Y,USCensusPovertyThreshold +geoId/21115,2022,5348,dcid:Count_Person_18To64Years_RatioToPovertyLine1.38To4,P1Y,USCensusPovertyThreshold +geoId/21115,2022,228,dcid:MarginOfError_Count_Person_18To64Years_1.38To4RatioToPovertyLine,P1Y,USCensusPovertyThreshold +geoId/21115,2022,432,dcid:Count_Person_18To64Years_RatioToPovertyLine1.38To4_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/21115,2022,70,dcid:dc/0npzqhtrl5vsb,P1Y,USCensusPovertyThreshold +geoId/21115,2022,4916,dcid:Count_Person_18To64Years_RatioToPovertyLine1.38To4_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/21115,2022,221,dcid:dc/xb1xj0zmlyn46,P1Y,USCensusPovertyThreshold +geoId/21115,2022,8.1,dcid:Percent_Person_18To64Years_RatioToPovertyLine1.38To4_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/21115,2022,1.3,dcid:dc/65vdzgmwj57s3,P1Y,USCensusPovertyThreshold +geoId/21115,2022,91.9,dcid:Percent_Person_18To64Years_RatioToPovertyLine1.38To4_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/21115,2022,1.3,dcid:dc/eryxbcbzs1lph,P1Y,USCensusPovertyThreshold +geoId/54015,2022,629,dcid:Count_Person_21To64Years_RatioToPovertyLineUpto1.38_Male,P1Y,USCensusPovertyThreshold +geoId/54015,2022,71,dcid:MarginOfError_Count_Person_21To64Years_1.38OrLessRatioToPovertyLine_Male,P1Y,USCensusPovertyThreshold +geoId/54015,2022,83,dcid:dc/rdccec4v0cclc,P1Y,USCensusPovertyThreshold +geoId/54015,2022,30,dcid:dc/mxvpc76gvj7w4,P1Y,USCensusPovertyThreshold +geoId/54015,2022,546,dcid:dc/vbyvjv2mjc2f4,P1Y,USCensusPovertyThreshold +geoId/54015,2022,66,dcid:dc/y68y6tzq0dbf5,P1Y,USCensusPovertyThreshold +geoId/54015,2022,13.2,dcid:dc/8jblpl7xspft3,P1Y,USCensusPovertyThreshold +geoId/54015,2022,4.3,dcid:dc/9bgeld68drhj3,P1Y,USCensusPovertyThreshold +geoId/54015,2022,86.8,dcid:dc/360c3txe9l057,P1Y,USCensusPovertyThreshold +geoId/54015,2022,4.3,dcid:dc/6n7vw7jq6ppw2,P1Y,USCensusPovertyThreshold +geoId/51015,2022,4171,dcid:Count_Person_18To64Years_RatioToPovertyLineUpto2_Male,P1Y,USCensusPovertyThreshold +geoId/51015,2022,355,dcid:MarginOfError_Count_Person_18To64Years_2OrLessRatioToPovertyLine_Male,P1Y,USCensusPovertyThreshold +geoId/51015,2022,692,dcid:dc/skhwy1cwt5y99,P1Y,USCensusPovertyThreshold +geoId/51015,2022,183,dcid:dc/d1g9e3qrgr7e7,P1Y,USCensusPovertyThreshold +geoId/51015,2022,3479,dcid:dc/9ye5ymhnjww8b,P1Y,USCensusPovertyThreshold +geoId/51015,2022,339,dcid:dc/w908x2zc0t4y1,P1Y,USCensusPovertyThreshold +geoId/51015,2022,16.6,dcid:dc/t99qwdy76dbv2,P1Y,USCensusPovertyThreshold +geoId/51015,2022,4.1,dcid:dc/q56y80rclx8p,P1Y,USCensusPovertyThreshold +geoId/51015,2022,83.4,dcid:dc/fqr6nfmxbrwz9,P1Y,USCensusPovertyThreshold +geoId/51015,2022,4.1,dcid:dc/n5psxh3s3vkb9,P1Y,USCensusPovertyThreshold +geoId/12133,2022,8108,dcid:Count_Person_Upto64Years_RatioToPovertyLineUpto2,P1Y,USCensusPovertyThreshold +geoId/12133,2022,271,dcid:MarginOfError_Count_Person_64OrLessYears_2OrLessRatioToPovertyLine,P1Y,USCensusPovertyThreshold +geoId/12133,2022,1572,dcid:Count_Person_Upto64Years_RatioToPovertyLineUpto2_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/12133,2022,231,dcid:dc/h9e43sdc6yp0d,P1Y,USCensusPovertyThreshold +geoId/12133,2022,6536,dcid:Count_Person_Upto64Years_RatioToPovertyLineUpto2_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/12133,2022,301,dcid:dc/b4d09z16vg6e7,P1Y,USCensusPovertyThreshold +geoId/12133,2022,19.4,dcid:Percent_Person_Upto64Years_RatioToPovertyLineUpto2_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/12133,2022,2.7,dcid:dc/wvcjfqz9fegc1,P1Y,USCensusPovertyThreshold +geoId/12133,2022,80.6,dcid:Percent_Person_Upto64Years_RatioToPovertyLineUpto2_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/12133,2022,2.7,dcid:dc/1q6q9vtszn1zc,P1Y,USCensusPovertyThreshold +geoId/17017,2022,3191,dcid:Count_Person_Upto18Years,P1Y, +geoId/17017,2022,0,dcid:MarginOfError_Count_Person_18OrLessYears,P1Y, +geoId/17017,2022,127,dcid:Count_Person_Upto18Years_NoHealthInsurance,P1Y, +geoId/17017,2022,38,dcid:dc/54weknb48ev54,P1Y, +geoId/17017,2022,3064,dcid:Count_Person_Upto18Years_WithHealthInsurance,P1Y, +geoId/17017,2022,38,dcid:dc/psp7jy51mwb69,P1Y, +geoId/17017,2022,4,dcid:Percent_Person_Upto18Years_NoHealthInsurance,P1Y, +geoId/17017,2022,1.2,dcid:dc/ec09b86ng0y7f,P1Y, +geoId/17017,2022,96,dcid:Percent_Person_Upto18Years_WithHealthInsurance,P1Y, +geoId/17017,2022,1.2,dcid:dc/3qd8jy760v3p8,P1Y, +geoId/24031,2022,120860,dcid:Count_Person_21To64Years_RatioToPovertyLineUpto2.5,P1Y,USCensusPovertyThreshold +geoId/24031,2022,3556,dcid:MarginOfError_Count_Person_21To64Years_2.5OrLessRatioToPovertyLine,P1Y,USCensusPovertyThreshold +geoId/24031,2022,29701,dcid:Count_Person_21To64Years_RatioToPovertyLineUpto2.5_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/24031,2022,2744,dcid:dc/vjmnkq9q8fth3,P1Y,USCensusPovertyThreshold +geoId/24031,2022,91159,dcid:Count_Person_21To64Years_RatioToPovertyLineUpto2.5_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/24031,2022,3763,dcid:dc/qr25t6ewwtlm,P1Y,USCensusPovertyThreshold +geoId/24031,2022,24.6,dcid:Percent_Person_21To64Years_RatioToPovertyLineUpto2.5_NoHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/24031,2022,2.2,dcid:dc/dm5vs4nrhlhk,P1Y,USCensusPovertyThreshold +geoId/24031,2022,75.4,dcid:Percent_Person_21To64Years_RatioToPovertyLineUpto2.5_WithHealthInsurance,P1Y,USCensusPovertyThreshold +geoId/24031,2022,2.2,dcid:dc/0d4n4chhwetz8,P1Y,USCensusPovertyThreshold diff --git a/statvar_imports/CensusSAHIE/test_data/sample_output/sahie.tmcf b/statvar_imports/CensusSAHIE/test_data/sample_output/sahie.tmcf new file mode 100644 index 000000000..211c78360 --- /dev/null +++ b/statvar_imports/CensusSAHIE/test_data/sample_output/sahie.tmcf @@ -0,0 +1,8 @@ +Node: E:sahie->E0 +observationAbout: C:sahie->observationAbout +observationDate: C:sahie->observationDate +value: C:sahie->value +variableMeasured: C:sahie->variableMeasured +observationPeriod: C:sahie->observationPeriod +measurementMethod: C:sahie->measurementMethod +typeOf: dcs:StatVarObservation diff --git a/statvar_imports/CensusSAHIE/test_data/sample_output/sahie_stat_vars.mcf b/statvar_imports/CensusSAHIE/test_data/sample_output/sahie_stat_vars.mcf new file mode 100644 index 000000000..80da07e32 --- /dev/null +++ b/statvar_imports/CensusSAHIE/test_data/sample_output/sahie_stat_vars.mcf @@ -0,0 +1,161 @@ +Node: dcid:MarginOfError_Count_Person_18To64Years_1.38To4RatioToPovertyLine +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [18 64 Years] +familyIncome: [1.38 4 RatioToPovertyLine] + +Node: dcid:MarginOfError_Count_Person_18To64Years_2.5OrLessRatioToPovertyLine_Female +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [18 64 Years] +familyIncome: [- 2.5 RatioToPovertyLine] +gender: dcid:Female + +Node: dcid:MarginOfError_Count_Person_18To64Years_2OrLessRatioToPovertyLine +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [18 64 Years] +familyIncome: [- 2 RatioToPovertyLine] + +Node: dcid:MarginOfError_Count_Person_18To64Years_2OrLessRatioToPovertyLine_Male +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [18 64 Years] +familyIncome: [- 2 RatioToPovertyLine] +gender: dcid:Male + +Node: dcid:MarginOfError_Count_Person_18To64Years_Female +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [18 64 Years] +gender: dcid:Female + +Node: dcid:MarginOfError_Count_Person_21To64Years_1.38OrLessRatioToPovertyLine_Female +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [21 64 Years] +familyIncome: [- 1.38 RatioToPovertyLine] +gender: dcid:Female + +Node: dcid:MarginOfError_Count_Person_21To64Years_1.38OrLessRatioToPovertyLine_Male +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [21 64 Years] +familyIncome: [- 1.38 RatioToPovertyLine] +gender: dcid:Male + +Node: dcid:MarginOfError_Count_Person_21To64Years_1.38To4RatioToPovertyLine_Female +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [21 64 Years] +familyIncome: [1.38 4 RatioToPovertyLine] +gender: dcid:Female + +Node: dcid:MarginOfError_Count_Person_21To64Years_2.5OrLessRatioToPovertyLine +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [21 64 Years] +familyIncome: [- 2.5 RatioToPovertyLine] + +Node: dcid:MarginOfError_Count_Person_21To64Years_4OrLessRatioToPovertyLine_Female +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [21 64 Years] +familyIncome: [- 4 RatioToPovertyLine] +gender: dcid:Female + +Node: dcid:MarginOfError_Count_Person_21To64Years_Male +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [21 64 Years] +gender: dcid:Male + +Node: dcid:MarginOfError_Count_Person_40To64Years_2OrLessRatioToPovertyLine +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [40 64 Years] +familyIncome: [- 2 RatioToPovertyLine] + +Node: dcid:MarginOfError_Count_Person_40To64Years_Male +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [40 64 Years] +gender: dcid:Male + +Node: dcid:MarginOfError_Count_Person_50To64Years_1.38OrLessRatioToPovertyLine_Female +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [50 64 Years] +familyIncome: [- 1.38 RatioToPovertyLine] +gender: dcid:Female + +Node: dcid:MarginOfError_Count_Person_50To64Years_1.38OrLessRatioToPovertyLine_Male +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [50 64 Years] +familyIncome: [- 1.38 RatioToPovertyLine] +gender: dcid:Male + +Node: dcid:MarginOfError_Count_Person_50To64Years_1.38To4RatioToPovertyLine +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [50 64 Years] +familyIncome: [1.38 4 RatioToPovertyLine] + +Node: dcid:MarginOfError_Count_Person_64OrLessYears_1.38OrLessRatioToPovertyLine_WhiteAlone +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [- 64 Years] +familyIncome: [- 1.38 RatioToPovertyLine] +race: dcid:WhiteAlone + +Node: dcid:MarginOfError_Count_Person_64OrLessYears_2OrLessRatioToPovertyLine +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [- 64 Years] +familyIncome: [- 2 RatioToPovertyLine] + +Node: dcid:MarginOfError_Count_Person_64OrLessYears_4OrLessRatioToPovertyLine +typeOf: dcid:StatisticalVariable +populationType: dcid:Person +measuredProperty: dcid:count +statType: dcid:marginOfError +age: [- 64 Years] +familyIncome: [- 4 RatioToPovertyLine] + diff --git a/statvar_imports/CensusSAHIE/test_data/sample_output/sahie_stat_vars_schema.mcf b/statvar_imports/CensusSAHIE/test_data/sample_output/sahie_stat_vars_schema.mcf new file mode 100644 index 000000000..5917eca30 --- /dev/null +++ b/statvar_imports/CensusSAHIE/test_data/sample_output/sahie_stat_vars_schema.mcf @@ -0,0 +1,6 @@ +Node: dcid:USCensusPovertyThreshold +typeOf: dcid:MeasurementMethodEnum +name: "USCensusPovertyThreshold" +description: "Measurement method for US Census Poverty Threshold" + +