Hi all-
I need to merge, clean and label covariates on few flat data files from the CDC NCHD Vital Statistics dataset, specifically the 2022 period/2021 cohort. I converted them to txt format and manage to import them into Stata 18. However, the imported data appeared as one column with 3,669,929 observations. I need to label the covariates based on the data dictionary but need some advice on how to do this. Appreciate your advice, thanks!
I need to merge, clean and label covariates on few flat data files from the CDC NCHD Vital Statistics dataset, specifically the 2022 period/2021 cohort. I converted them to txt format and manage to import them into Stata 18. However, the imported data appeared as one column with 3,669,929 observations. I need to label the covariates based on the data dictionary but need some advice on how to do this. Appreciate your advice, thanks!
import delimited "/Users/yc765/Downloads/VS2021LINK.Public.USDENPUB_add_Seq_for2021Cohort_r 2024_04_15.txt", | emptylines(include) |
> clear | |
(encoding automatically selected: UTF-8) | |
(1 var, 3,669,929 obs) |
Comment