turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- Base SAS Programming
- /
- hedonic wage equation

Topic Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

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!

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to graingerad12

04-23-2016 01:58 PM

Look at proc REG or GLM.

The documentation has good examples.

You do not need to create a matrix, a SAS dataset is enough to get started.

http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter1/sasreg1.htm

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to graingerad12

04-23-2016 02:05 PM

I see there are Binary Variables and OLS mainly used in LR model (as per i know ) You can check Logistic regression i you wish to ..

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to graingerad12

04-23-2016 02:48 PM

Hedonic function depends on fatrate... Hmmm

PG

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to graingerad12

04-23-2016 06:00 PM

Since dependent variable is continuous you can use regression.

```
proc reg data=have;
model wage = male white age fatrate;
run;quit;
```