set more 1 /* File: cepr_acs_occ.do Date: Aug 18, 2011 Oct 30, 2012 Dec 23, 2013 Jan 27, 2015 Nov 03, 2015, CEPR ACS Version 1.1 Sep 19, 2016, CEPR ACS Version 1.1.1 Oct 24, 2016, CEPR ACS Version 1.2 Oct 22, 2017, CEPR ACS Version 1.3 May 30, 2019, CEPR ACS Version 1.4 Apr 16, 2020, CEPR ACS Version 1.5 Mar 02, 2021, CEPR ACS Version 1.6 Desc: Creates consistent occupational variables for CEPR extract of American Community Survey Note: See copyright notice at end of program. */ /* Determine survey year */ local year=year in 1 /* Occupation code */ if 2005<=`year' & `year'<=2019 { gen occp05=. gen occp10=. gen occp12=. gen occp18=. } if 2005<=`year' & `year'<=2009 { replace occp05=occp replace occp05=. if occp05<10 replace occp05=. if 9920