Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion statvar_imports/us_crash/fars_crashdata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This script downloads and processes the FARS_CrashData dataset, covering years f
- **Source**: [National Highway Traffic Safety Administration](https://www.nhtsa.gov/file-downloads?p=nhtsa/downloads/FARS/)
- **Place Types**: Country, State, County
- **Statvars**: Demographics
- **Years**: 2021 to 2023 (Note: Data from 1975-2020 is preserved as historical data).
- **Years**: 2021 to 2024 (Note: Data from 1975-2020 is preserved as historical data).

---

Expand Down
6 changes: 4 additions & 2 deletions statvar_imports/us_crash/fars_crashdata/fars_crash_pvmap.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ MINUTE,observationAbout,geoId/{State}{County},observationDate,{Year}-{Month}-{Da
STATE,#Format,State={Data:0>2},,,,,,,,,,,,,,,,,,,,,,,,
COUNTY:998,#ignore,skip,,,,,,,,,,,,,,,,,,,,,,,,
COUNTY:999,#ignore,skip,,,,,,,,,,,,,,,,,,,,,,,,
COUNTY:997,#ignore,skip,,,,,,,,,,,,,,,,,,,,,,,,
COUNTY,#Format,County={Data:0>3},,,,,,,,,,,,,,,,,,,,,,,,
FATALS,measuredProperty,count,populationType,MortalityEvent,causeOfDeath,VehicleCrashIncident,name,Count of mortality event in vehicle crash incident,#Aggregate,sum,value,{Number},description,Count of the number of fatally injured people in the crash and is derived by counting all people with “Injury Severity” of 4 in the crash,descriptionUrl,https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=86,,,,,,,,,,
CITY,measuredProperty,count,populationType,VehicleCrashIncident,name,Count of vehicle crash incident,#Aggregate,sum,value,1,,,,,,,,,,,,,,,,
FATALS,measuredProperty,count,populationType,MortalityEvent,causeOfDeath,VehicleCrashIncident,name,"""Count of mortality event in vehicle crash incident""",#Aggregate,sum,value,{Number},description,"""Count of the number of fatally injured people in the crash and is derived by counting all people with “Injury Severity” of 4 in the crash""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=86""",,,,,,,,,,
CITY,measuredProperty,count,populationType,VehicleCrashIncident,name,"""Count of vehicle crash incident""",#Aggregate,sum,value,1,,,,,,,,,,,,,,,,
PEDS,measuredProperty,count,populationType,Person,vehicleOccupantType,NotMotorVehicleOccupant,crashInvolvement,InvolvedInCrash,vehicleStatus,"""""",name,"""Count of number of person not a motor vehicle occupant involved in crash""",#Aggregate,sum,value,{Number},,,,,,,,,,
PERNOTMVIT,measuredProperty,count,populationType,Person,vehicleOccupantType,NonMotorists,crashInvolvement,InvolvedInCrash,vehicleStatus,"""""",name,"""Count of the number of non-motorists in the crash""",#Aggregate,sum,value,{Number},description,"""The number of non-motorists in the crash. A non-motorist is defined as a pedestrian, a cyclist, an occupant of a motor vehicle not in-transport, a person riding a horse, an occupant of an animal drawn conveyance, person associated with non-motorist conveyance (e.g., baby carriage, skateboard, wheelchair), or an other non-motorist(e.g., person outside a trafficway, person in a house)""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=39""",,,,,,
VE_FORMS,measuredProperty,count,populationType,Vehicle,crashInvolvement,InvolvedInCrash,vehicleStatus,InTransport,,,name,"""Count of the number of vehicles in-transport involved in crash""",vehicleOccupantType,"""""",#Aggregate,sum,value,{Number},description,"""Count of the number of motor vehicles in-transport involved in the crash. Legally parked vehicles are not included""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=41""",,,,
Expand All @@ -27,6 +28,7 @@ CL_TWAY:6,locationType,CountyRoad,CLTWAY,county road,measuredProperty,count,popu
CL_TWAY:7,locationType,LocalStreet,CLTWAY,local street,measuredProperty,count,populationType,VehicleCrashIncident,#Aggregate,sum,value,1,crashInvolvement,"""""",vehicleOccupantType,"""""",vehicleStatus,"""""",name,"""Count of crash incident on {CLTWAY}""",description,"""Count of crash incident where the route signing of the trafficway on which the crash occurred is {CLTWAY}""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=51""",,
CL_TWAY:8,locationType,NHTSA_OtherLocation,CLTWAY,other location,measuredProperty,count,populationType,VehicleCrashIncident,#Aggregate,sum,value,1,crashInvolvement,"""""",vehicleOccupantType,"""""",vehicleStatus,"""""",name,"""Count of crash incident on {CLTWAY}""",description,"""Count of crash incident where the route signing of the trafficway on which the crash occurred is {CLTWAY}""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=51""",,
CL_TWAY:9,locationType,NHTSA_UnknownLocation,CLTWAY,unknown location,measuredProperty,count,populationType,VehicleCrashIncident,#Aggregate,sum,value,1,crashInvolvement,"""""",vehicleOccupantType,"""""",vehicleStatus,"""""",name,"""Count of crash incident on {CLTWAY}""",description,"""Count of crash incident where the route signing of the trafficway on which the crash occurred is {CLTWAY}""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=51""",,
ROUTE:0,locationType,NHTSA_NoRouteSigning,ROUTE,unsigned road,measuredProperty,count,populationType,VehicleCrashIncident,#Aggregate,sum,value,1,crashInvolvement,"""""",vehicleOccupantType,"""""",vehicleStatus,"""""",name,"""Count of crash incident on {ROUTE}""",description,"""Count of crash incident where the route signing of the trafficway on which the crash occurred is {ROUTE}""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=51""",,
ROUTE:1,locationType,InterstateRoad,ROUTE,interstate road,measuredProperty,count,populationType,VehicleCrashIncident,#Aggregate,sum,value,1,crashInvolvement,"""""",vehicleOccupantType,"""""",vehicleStatus,"""""",name,"""Count of crash incident on {ROUTE}""",description,"""Count of crash incident where the route signing of the trafficway on which the crash occurred is {ROUTE}""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=51""",,
ROUTE:2,locationType,USHighway,ROUTE,US highway,measuredProperty,count,populationType,VehicleCrashIncident,#Aggregate,sum,value,1,crashInvolvement,"""""",vehicleOccupantType,"""""",vehicleStatus,"""""",name,"""Count of crash incident on {ROUTE}""",description,"""Count of crash incident where the route signing of the trafficway on which the crash occurred is {ROUTE}""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=51""",,
ROUTE:3,locationType,StateHighway,ROUTE,state highway,measuredProperty,count,populationType,VehicleCrashIncident,#Aggregate,sum,value,1,crashInvolvement,"""""",vehicleOccupantType,"""""",vehicleStatus,"""""",name,"""Count of crash incident on {ROUTE}""",description,"""Count of crash incident where the route signing of the trafficway on which the crash occurred is {ROUTE}""",descriptionUrl,"""https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/813417#page=51""",,
Expand Down
Loading