Dear Statlist:
I'm working on a dataset that contains job announcements across the federal workforce. That is, the unit of analysis is job announcements, which has variables such as organization, date of position opened/closed, job title, location, and so on. My question here relates to my location variable. Due to the nature of the Federal workforce's nature that jobs are announced on a functional basis (rather than regionality), some (or most) announcements have more than one region hiring for the position. For example, the data currently looks something like the following.
Here, three regions (El Centro, Sacramento, and Susanville) are hiring for the same position. This is a challenge for me to identifying how many and what types of announcements were posted by region. To look into a more granular level of regional analysis, I want to separate the regions, but at the same time, maintain other information. In this case, I want to make three identical rows with other variables the same except for the location. That would look something like ...
The regions are separated by "|" .
Relatedly, my second question: I want to make a state variable by extracting only the states from the current format (e.g., CA).
Can anyone help me out on these? Thanks.
My data looks like this.
------------------ copy up to and including the previous line ------------------
I'm working on a dataset that contains job announcements across the federal workforce. That is, the unit of analysis is job announcements, which has variables such as organization, date of position opened/closed, job title, location, and so on. My question here relates to my location variable. Due to the nature of the Federal workforce's nature that jobs are announced on a functional basis (rather than regionality), some (or most) announcements have more than one region hiring for the position. For example, the data currently looks something like the following.
Organization | Job title | ... | Location |
XX | YY | ... | El Centro, CA, | Sacramento, CA, | Susanville, CA, |
... | ... | ... | ... |
Here, three regions (El Centro, Sacramento, and Susanville) are hiring for the same position. This is a challenge for me to identifying how many and what types of announcements were posted by region. To look into a more granular level of regional analysis, I want to separate the regions, but at the same time, maintain other information. In this case, I want to make three identical rows with other variables the same except for the location. That would look something like ...
Organization | Job title | ... | Location |
XX | YY | ... | El Centro, CA |
XX | YY | ... | Sacramento, CA |
XX | YY | ... | Susanville, CA |
... | ... | ... | ... |
Relatedly, my second question: I want to make a state variable by extracting only the states from the current format (e.g., CA).
Can anyone help me out on these? Thanks.
My data looks like this.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str50 agency str69 job_series_title strL announcement_locations str10(announcement_open_date announcement_close_date) "Department of Defense" "Financial Administration And Program" "Pittsburgh, PA," "7/1/2020" "7/7/2020" "Department of Defense" "Engineering Technical" "Tinker AFB, OK," "10/1/2018" "10/9/2018" "Department of Health And Human Services" "Health System Specialist" "Billings, MT," "10/1/2018" "10/15/2018" "Department of Veterans Affairs" "Security Clerical and Assistance" "Nashville, TN," "10/1/2018" "10/11/2018" "Department of Homeland Security" "Customs And Border Protection" "Washington, DC," "6/8/2020" "6/12/2020" "Department of Defense" "Financial Administration And Program" "Hickam AFB, HI," "6/4/2020" "6/24/2020" "Department of Defense" "Sports Specialist" "Kirtland AFB, NM," "8/20/2020" "8/26/2020" "Department of Veterans Affairs" "Medical Instrument Technician" "Durham, NC," "8/19/2020" "9/3/2020" "Department of Defense" "Medical Instrument Technician" "Fort Leonard Wood, MO," "10/1/2018" "10/9/2018" "Department of Defense" "Speech Pathology And Audiology" "Tacoma, WA," "10/2/2018" "10/9/2018" "Department of Veterans Affairs" "Biological Science Technician" "Buffalo, NY," "10/1/2018" "10/12/2018" "Department of Defense" "Transportation Operations" "Dobbins AFB, GA," "10/24/2018" "10/30/2018" "Small Business Administration" "General Business And Industry" "King of Prussia, PA," "10/1/2018" "10/12/2018" "Department of Defense" "General Business And Industry" "Fort Eustis, VA," "10/1/2018" "10/15/2018" "Department of Veterans Affairs" "Physician Assistant" "Iowa City, IA," "8/20/2020" "9/3/2020" "Department of Defense" "General Business And Industry" "Camp Pendleton, CA," "10/1/2018" "10/15/2018" "Department of Veterans Affairs" "Financial Administration And Program" "Saint Paul, MN," "10/16/2018" "10/22/2018" "Department of Defense" "General Business And Industry" "Saint Louis, MO," "10/15/2018" "10/19/2018" "Department of Health And Human Services" "Actuarial Science" "Woodlawn, MD," "10/1/2018" "10/16/2018" "Department of Defense" "Respiratory Therapist" "Tripler Army Medical Center, HI," "10/3/2018" "10/11/2018" "Department of Defense" "Transportation Operations" "Sigonella Sicily, Italy" "10/2/2018" "10/10/2018" "Department of Defense" "Financial Administration And Program" "Indianapolis, IN," "6/3/2020" "6/16/2020" "Department of Veterans Affairs" "Medical Supply Aide And Technician" "West Roxbury, MA," "6/3/2020" "6/25/2020" "Department of Defense" "General Business And Industry" "Fallon, NV," "6/3/2020" "6/15/2020" "Department of Defense" "Financial Administration And Program" "Fort Detrick, MD," "10/1/2018" "10/1/2018" "Department of Justice" "Financial Administration And Program" "Arlington, VA," "10/1/2018" "10/10/2018" "Department of Health And Human Services" "Biological Science Technician" "Jefferson, AR," "7/29/2020" "8/12/2020" "Department of Agriculture" "General Business And Industry" "Morrilton, AR," "7/30/2020" "8/10/2020" "Department of Defense" "Financial Administration And Program" "Bethesda, MD," "8/5/2020" "8/12/2020" "Department of Defense" "General Business And Industry" "Naval Air Station Key West , FL," "7/2/2020" "7/8/2020" "Department of Veterans Affairs" "Physician Assistant" "Reno, NV," "7/1/2020" "7/21/2020" "Department of Defense" "Engineering Technical" "Memphis, TN," "6/4/2020" "6/12/2020" "Department of Veterans Affairs" "Speech Pathology And Audiology" "Wichita, KS," "6/5/2020" "6/25/2020" "Department of Defense" "Records & Information Management" "Fort Meade, MD," "10/15/2018" "10/25/2018" "Department of Defense" "General Business And Industry" "Fort Lee, VA," "10/16/2018" "10/23/2018" "Department of Veterans Affairs" "Health Physics" "Jamaica Plain, MA," "10/16/2018" "10/22/2018" "Department of Veterans Affairs" "Physician Assistant" "Wytheville, VA," "10/15/2018" "11/5/2018" "Department of Veterans Affairs" "Speech Pathology And Audiology" "Perry Point, MD," "8/19/2020" "9/8/2020" "Department of Agriculture" "General Business And Industry" "Osceola, AR," "8/21/2020" "8/31/2020" "Department of Defense" "General Business And Industry" "Fort Meade, MD," "10/1/2018" "10/11/2018" "Department of Homeland Security" "Customs And Border Protection" "Falls Church, VA," "10/5/2018" "10/18/2018" "Department of Veterans Affairs" "Medical Supply Aide And Technician" "Fresno, CA," "10/1/2018" "10/19/2018" "Department of Defense" "Naval Architecture" "Pearl Harbor Naval Base, Oahu, HI," "7/29/2020" "7/31/2020" "Department of Defense" "Health System Specialist" "Landstuhl, Germany" "7/31/2020" "8/4/2020" "Department of Health And Human Services" "Medical Supply Aide And Technician" "Albuquerque, NM," "9/29/2020" "10/13/2020" "Department of Veterans Affairs" "Health System Specialist" "Danville, IL," "8/21/2020" "8/27/2020" "Department of Veterans Affairs" "Security Clerical and Assistance" "Harlingen, TX," "8/24/2020" "9/15/2020" "Department of Homeland Security" "Customs And Border Protection" "Laredo, TX," "8/31/2020" "9/4/2020" "Department of Veterans Affairs" "Biological Science Technician" "Boise, ID," "10/23/2018" "10/29/2018" "Department of Defense" "Physician Assistant" "Fort Carson, CO," "11/23/2018" "12/3/2018" "Department of Veterans Affairs" "Psychology Aid And Technician" "El Paso, TX," "7/4/2020" "7/8/2020" "Department of Defense" "Financial Administration And Program" "Fort Belvoir, VA," "7/29/2020" "8/7/2020" "Department of Defense" "Engineering Technical" "Schriever AFB, CO," "7/29/2020" "8/4/2020" "Department of Defense" "Health System Specialist" "MacDill AFB, FL," "6/8/2020" "6/12/2020" "Department of Veterans Affairs" "Health System Specialist" "Detroit, MI," "10/22/2018" "11/1/2018" "Department of Defense" "Medical Instrument Technician" "Fort Leonard Wood, MO," "10/24/2018" "11/26/2018" "Department of Defense" "General Business And Industry" "Warren AFB, WY," "10/1/2018" "10/15/2018" "Department of Defense" "Biological Science Technician" "Air Force Academy, CO," "10/19/2018" "11/9/2018" "Small Business Administration" "General Business And Industry" "King of Prussia, PA," "10/8/2018" "10/12/2018" "Department of Defense" "Health Physics" "Crane, IN," "10/1/2018" "10/2/2018" "Department of Defense" "Financial Administration And Program" "Wright-Patterson AFB, OH," "10/10/2018" "10/16/2018" "Department of Defense" "General Business And Industry" "Robins AFB, GA," "7/7/2020" "7/13/2020" "Department of Defense" "General Business And Industry" "Redstone Arsenal, AL," "7/8/2020" "7/22/2020" "Department of Defense" "Financial Administration And Program" "New Cumberland Defense Logistics Center, PA," "7/31/2020" "8/10/2020" "Department of Health And Human Services" "General Business And Industry" "Montgomery County, MD," "8/3/2020" "8/7/2020" "Department of Defense" "Engineering Technical" "Watervliet, NY," "10/3/2018" "10/12/2018" "Department of the Interior" "Archeology" "El Centro, CA, | Sacramento, CA, | Susanville, CA," "8/19/2020" "9/7/2020" "Department of Defense" "Fire Protection and Prevention" "Buckley AFB, CO," "8/19/2020" "8/26/2020" "Department of Defense" "Social Science" "Marine Corps Air Station Miramar, CA," "8/20/2020" "8/28/2020" "Department of Homeland Security" "Program Management" "Imperial, CA," "7/30/2020" "8/12/2020" "Department of Defense" "Rehabilitation Therapy Assistant" "Fort Polk, LA," "7/31/2020" "8/6/2020" "Department of Defense" "Inventory Management" "Hickam AFB, HI," "10/2/2018" "10/9/2018" "Department of Veterans Affairs" "Clinical Laboratory Science" "Chicago, IL," "10/15/2018" "11/2/2018" "Department of Defense" "Financial Clerical And Assistance" "Millington, TN," "10/1/2018" "10/9/2018" "Department of the Interior" "Program Management" "Salt Lake City, UT," "6/3/2020" "6/16/2020" "Department of Defense" "Social Science" "Fort Wainwright, AK," "6/4/2020" "6/11/2020" "Department of Defense" "Program Management" "Pearl Harbor Naval Base, Oahu, HI," "7/1/2020" "7/6/2020" "Department of Defense" "Social Science" "Ramstein, Germany" "7/2/2020" "7/9/2020" "Department of Defense" "Instructional Systems" "Monterey, CA," "7/1/2020" "7/15/2020" "Department of Defense" "Fire Protection and Prevention" "Fort Bliss, TX," "6/8/2020" "6/19/2020" "Department of Defense" "Property Disposal" "Herlong Sierra Ordnance Depot, CA," "8/19/2020" "8/28/2020" "Small Business Administration" "Program Management" "Citrus Heights, CA," "8/21/2020" "8/27/2020" "Department of Veterans Affairs" "Clinical Laboratory Science" "Fargo, ND," "8/20/2020" "9/9/2020" "Department of Defense" "Procurement Clerical And Technician" "Santa Ana, CA," "10/15/2018" "10/25/2018" "Department of Defense" "Property Disposal" "Fort Bragg, NC," "10/1/2018" "10/11/2018" "Department of Defense" "Construction Control Technical" "Schinnen, Netherlands" "7/29/2020" "8/10/2020" "Department of Veterans Affairs" "Social Science" "Marion, IL," "7/29/2020" "8/12/2020" "Department of Defense" "Dental Assistant" "Fort Carson, CO," "7/6/2020" "7/13/2020" "Department of Defense" "Program Management" "Brussels, Belgium" "7/2/2020" "7/8/2020" "Department of Agriculture" "Program Management" "Washington, DC," "6/3/2020" "6/9/2020" "Department of Veterans Affairs" "Pharmacist" "Salem, VA," "8/13/2020" "9/8/2020" "Department of Agriculture" "Social Science" "Harrisburg, IL," "8/26/2020" "9/15/2020" "Department of Veterans Affairs" "Inventory Management" "San Juan, PR," "8/20/2020" "8/31/2020" "Department of Defense" "Social Science" "McGuire AFB, NJ," "6/4/2020" "6/10/2020" "Department of Defense" "Dental Assistant" "Joint Base Lewis-McChord, WA," "6/4/2020" "6/19/2020" "Department of Veterans Affairs" "Social Science" "Fargo, ND," "7/28/2020" "8/25/2020" "Department of Defense" "Construction Control Technical" "Dulmen, Germany" "7/29/2020" "8/10/2020" "Department of Defense" "Construction Control Technical" "Stockton, CA, | West Sacramento, CA," "8/25/2020" "9/7/2020" "Department of Veterans Affairs" "Program Management" "Washington DC," "10/15/2018" "10/17/2018" "Department of Defense" "Social Science" "Oklahoma City, OK," "7/1/2020" "7/10/2020" end
Comment