Upcoming SlideShare
×

# Tut7 transformations

868 views

Published on

Explains how to transform data in EViews, logs, differences

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
868
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
51
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Tut7 transformations

1. 1. ECON321 Economic Analysis Tutorial 7 Transformations
2. 2. Introduction <ul><li>The lecture on functional forms explains that you may want to transform your data and estimate non-linear relationships. </li></ul><ul><li>This tutorial will show you how to do those transformations, but for more about the interpretations please refer to the chapter in Gujarati and the lecture PowerPoint slides. </li></ul><ul><li>We use the model of house price (measured in dollars) as a function of: </li></ul><ul><ul><li>ROOMS: The average number of rooms in houses. </li></ul></ul><ul><ul><li>NOX: The amount of nitrogen oxide in the air in parts per million. </li></ul></ul><ul><ul><li>DIST: The distance of the community from employment centres in miles. </li></ul></ul><ul><ul><li>STRATIO: The average student-teacher ratio of schools in the community. </li></ul></ul>
3. 4. Using logs <ul><li>It maybe that the relationship is not this linear in parameters. </li></ul><ul><ul><li>For example, as pollution gets higher and higher, the associated decrease in the price become larger. </li></ul></ul><ul><li>You can check this by using a log-level model. </li></ul>
4. 12. Using logs Model Dependent variable Independent variable Interpretation of β 1 Level-level y x ∆ y = β 1 ∆x Level-log y log(x) ∆ y = ( β 1 /100)%∆x Log-level log(y) x %∆y = (100* β 1 )∆x Log-log log(y) log(x) %∆y = β 1 %∆x
5. 13. Using quadratics <ul><li>In addition to logs, you may want to use quadratics to examine increasing or decreasing returns. </li></ul><ul><ul><li>For example, there may not ne a straight-line positive relationship between the number of rooms and PRICE. </li></ul></ul><ul><li>You can check this by adding a quadratic term. </li></ul>
6. 17. Using quadratics <ul><li>You are interested in the effect of ROOMS on log(PRICE): </li></ul><ul><li>Note, the coefficient on ROOMS is negative, and on SQROOMS it is positive. </li></ul><ul><li>This means that at low values of ROOMS an additional room has a negative effect on log(PRICE). </li></ul><ul><li>At some point the effect becomes positive and the semi-elasticity of PRICE with respect to ROOMS is increasing as ROOMS increase. </li></ul><ul><li>You can determine that turning point by the formula </li></ul><ul><li>In this case it is </li></ul>
7. 18. <ul><li>You now know how to estimate models and interpret the results. The rest of the course will be about tests to check whether the CLRM assumptions hold and the corrective steps that you need to take when they do not. </li></ul><ul><li>Save your workfile and continue… </li></ul>