| fars_codebook | R Documentation |
A table describing each FARS variable name, value, and corresponding value label.
fars_codebook
A data frame with 15,951 rows and 19 variables:
The source of the data (either FARS or GES/CRSS).
The data file that contains the given variable.
The original name of the data element.
The modified data element name used in rfars
The label of the data element itself (not its constituent values).
The data element's definition, pulled from the Analytical User Manual.
Additional information on the data element, pulled from the Analytical User Manual.
The original value of the data element.
The de-coded value label.
Indicator: 1 if valid for 2014, NA otherwise.
Indicator: 1 if valid for 2015, NA otherwise.
Indicator: 1 if valid for 2016, NA otherwise.
Indicator: 1 if valid for 2017, NA otherwise.
Indicator: 1 if valid for 2018, NA otherwise.
Indicator: 1 if valid for 2019, NA otherwise.
Indicator: 1 if valid for 2020, NA otherwise.
Indicator: 1 if valid for 2021, NA otherwise.
Indicator: 1 if valid for 2022, NA otherwise.
Indicator: 1 if valid for 2023, NA otherwise.
This codebook serves as a useful reference for researchers using FARS data. The 'source' variable is intended to help combine with the gescrss_codebook. Data elements are relatively stable but are occasionally discontinued, created anew, or modified. The 'year' variable helps indicate the availability of data elements, and differentiates between different definitions over time. Users should always check for discontinuities when tabulating cases.
The 'file' variable indicates the file in which the given data element originally appeared. Here, files refers to the SAS files downloaded from NHTSA. Most data elements stayed in their original file. Those that did not were moved to the multi_ files. For example, 'weather' originates from the 'accident' file, but appears in the multi_acc data object created by rfars.
The 'name_ncsa' variable describes the data element's name as assigned by NCSA (the organization within NHTSA that manages the database). To maximize compatibility between years and ease of use for programming, 'name_rfars' provides a cleaned naming convention (via janitor::clean_names()).
Each data element has a 'label', a more human-readable version of the element names. For example, the label for 'road_fnc' is 'Roadway Function Class'. These are not definitions but may provide enough information to help users conduct their analysis. Consult the Analytical User’s Manual for definitions and further details.
'Definition' and 'Additional Information' were extracted from the Analytical User’s Manual.
Each data element has multiple 'value'-'value_label' pairs: 'value' represents the original, non-human-readable value (usually a number), and 'value_label' represents the corresponding text value. For example, for 'road_fnc', 1 (the 'value') corresponds to 'Rural-Principal Arterial-Interstate' (the 'value_label'), 2 corresponds to 'Rural-Principal Arterial-Other', etc.
@source Codebooks are automatically generated by extracting SAS format catalogs (.sas7bcat files) and VALUE statements from .sas files during data processing, then consolidating variable names, labels, and value-label mappings across all years into searchable reference tables. Source files are published by NHTSA and available here.
"gescrss_codebook"
head(rfars::fars_codebook)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.