07-23-2018
graingerad12
Calcite | Level 5
Member since
09-09-2015
- 6 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by graingerad12
Subject Views Posted 1663 04-23-2016 07:06 PM 2112 04-23-2016 12:09 PM 1322 04-19-2016 12:49 PM 1061 04-19-2016 11:01 AM 900 04-18-2016 05:30 PM 1027 04-18-2016 04:07 PM -
Activity Feed for graingerad12
- Posted value of statistical life on Statistical Procedures. 04-23-2016 07:06 PM
- Posted hedonic wage equation on SAS Programming. 04-23-2016 12:09 PM
- Posted generate a new variable on SAS Programming. 04-19-2016 12:49 PM
- Posted creating a new variable on SAS Programming. 04-19-2016 11:01 AM
- Posted generate a new variable on SAS Programming. 04-18-2016 05:30 PM
- Posted drop a variable on SAS Programming. 04-18-2016 04:07 PM
04-23-2016
07:06 PM
Does anyone know how to calculate the Value of Statistical life in SAS? the variables in the data set im working with are defined as: wage = worker's hourly wage rate male = 1 if worker is male and =0 otherwise white = 1 if worker's race is white = 0 otherwise age = workers age in years fatrate = worker's risk of fatality measured in terms of deaths per 100,000 workers. the code I have so far (to estimate a linear hedonic wage equation for wages and log wages) is: data final; set 'final'; lwage= log(wage); age2 = age*age; run; proc means data=final; run; proc reg data=final outest=est tableout; model wage = male white age age2 fatrate; model lwage= male white age age2 fatrate; run; proc print data=est; title 'OUTEST data from PROC REG'; run;
... View more
04-23-2016
12:09 PM
Hello! I was just wondering if someone could please help me with a problem. I am trying to use OLS to estimate a linear hedonic wage equation with wages as a function of gender, race, age, age^2, and fatality risks. the variables are defined as: wage = worker's hourly wage rate male = 1 if worker is male and =0 otherwise white = 1 if worker's race is white = 0 otherwise age = workers age in years fatrate = worker's risk of fatality measured in terms of deaths per 100,000 workers. how would the code even look like? Do i need to create a matrix, and if so, how? thank you!
... View more
04-19-2016
12:49 PM
Hello. I need help with an assignment that I am working on. The instructions are as follows: Instructions: Extract and download CPS data from IPUMS site onto your computer https://cps.ipums.org/cps-action/variables/group save the data file as SAS data set. You will need to choose the following variables to include in your extract: Person Record Core Demographic Variables AGE Age SEX Gender RACE Race MARST Marital status Ethnicity/Nativity Variables NATIVITY Foreign birthplace or parentage HISPAN Hispanic origin Education Variables EDUC99 Educational attainment, 1990 categories Work Variables WKSWORK1 Weeks worked last year UHRSWORK Usual hours worked per week last year UNION Union status PTWEEKS Weeks working part time last year Income Variables INCWAGE Wage and salary income Process the CPS raw data using SAS to get it ready to analyze statistically. The following data processing steps are necessary before going on to step 3: Drop observations for all non-wage earners. Generate a new variable for the natural log of earnings from INCWAGE variable. Generate a new variable for years of education using EDUC99 variable. Generate a new variable for experience using AGE and EDUC99 variables. Generate dummy variables for each of the following categories: 1) Gender 2) Race/Ethnicity 3) Nativity 4) Marital Status 5) Union Status I need help with the question that says "generate a new variable for experience using AGE and EDUC99 variables. I have attached in a word document that SAS code that I have so far (which also defines all the variables).
... View more
04-19-2016
11:01 AM
I am trying to generate a new variable for years of education using the EDUC99 variable. The data set came with these formats already embedded in it. How would I go about creating a new variable(s) for years of education using the educ99 variable? value EDUC99_f 00 = "NIU" 01 = "No school completed" 04 = "1st-4th grade" 05 = "5th-8th grade" 06 = "9th grade" 07 = "10th grade" 08 = "11th grade" 09 = "12th grade, no diploma" 10 = "High school graduate, or GED" 11 = "Some college, no degree" 12 = "Associate degree, type of program not specified" 13 = "Associate degree, occupational program" 14 = "Associate degree, academic program" 15 = "Bachelors degree" 16 = "Masters degree" 17 = "Professional degree" 18 = "Doctorate degree"
... View more
04-18-2016
05:30 PM
Hello. I am doing an assignment in which I am supposed to extract and download CPS data from IPUMS site (https://cps.ipums.org/cps-action/variables/group). The variables in the data set are as follows: Person Record Core Demographic Variables AGE Age SEX Gender RACE Race MARST Marital status Ethnicity/Nativity Variables NATIVITY Foreign birthplace or parentage HISPAN Hispanic origin Education Variables EDUC99 Educational attainment, 1990 categories Work Variables WKSWORK1 Weeks worked last year UHRSWORK Usual hours worked per week last year UNION Union status PTWEEKS Weeks working part time last year Income Variables INCWAGE Wage and salary income I am having trouble executing a few steps that are required in the assignment. For example, it says to Generate a new variable for years of education using EDUC99 variable. Generate a new variable for experience using AGE and EDUC99 variables. What would the code look like in order to do that? Thanks!
... View more
04-18-2016
04:07 PM
Hello. I am doing an assignment in which I am supposed to extract and download CPS data from IPUMS site (https://cps.ipums.org/cps-action/variables/group). The variables in the data set are as follows: Person Record Core Demographic Variables AGE Age SEX Gender RACE Race MARST Marital status Ethnicity/Nativity Variables NATIVITY Foreign birthplace or parentage HISPAN Hispanic origin Education Variables EDUC99 Educational attainment, 1990 categories Work Variables WKSWORK1 Weeks worked last year UHRSWORK Usual hours worked per week last year UNION Union status PTWEEKS Weeks working part time last year Income Variables INCWAGE Wage and salary income I am having trouble executing a few steps that are required in the assignment. For example, it says to "drop observations for all non-wage earners." What would the code look like in order to do that?
... View more