Using gret l for Principles of Econometrics, 4th Edition


Elasticity is an important concept in economics. It measures how responsiveness one variable is to changes in another. Mathematically, the concept of elasticity is fairly simple:

percentage change in y Ay/y

percentage change in x Ax/x '

Подпись: є
Подпись: AE(y)/E(y) Ax/x image031 Подпись: (2.4)

In terms of the regression function, we are interested in the elasticity of average food expenditures with respect to changes in income:

E(y) and x are usually replaced by their sample means and в2 by its estimate. The mean of food_exp and income can be obtained by using the cursor to highlight both variables, use the

View>Summary statistics from the menu bar as shown in Figure 2.10, and the computation can be done by hand. However, you can make this even easier by using the gretl language to do all of the computations-no calculator needed! Simply open up a new script and type in:

1 ols food_exp const income —quiet

2 scalar elast=$coeff(income)*mean(income)/mean(food_exp)

This yields the output shown in figure 2.11.

Following a least squares regression, Gretl stores the least squares estimates of the constant and the slope in variables called $coeff(const) and $coeff(income), respectively. In addition, it uses mean(income) and mean(food_exp)to compute the mean of the variables income and food_exp. The —quiet option is convenient when you don’t want or need the output from the regression printed to the screen. The result from this computation appears below in Figure 2.12.

Добавить комментарий

Using gret l for Principles of Econometrics, 4th Edition


In appendix 10F of POE4, the authors conduct a Monte Carlo experiment comparing the performance of OLS and TSLS. The basic simulation is based on the model y = x …

Hausman Test

The Hausman test probes the consistency of the random effects estimator. The null hypothesis is that these estimates are consistent-that is, that the requirement of orthogonality of the model’s errors …

Time-Varying Volatility and ARCH Models: Introduction to Financial Econometrics

In this chapter we’ll estimate several models in which the variance of the dependent variable changes over time. These are broadly referred to as ARCH (autoregressive conditional heteroskedas - ticity) …

Как с нами связаться:

тел./факс +38 05235  77193 Бухгалтерия
+38 050 512 11 94 — гл. инженер-менеджер (продажи всего оборудования)

+38 050 457 13 30 — Рашид - продажи новинок
Схема проезда к производственному офису:
Схема проезда к МСД

Партнеры МСД

Контакты для заказов шлакоблочного оборудования:

+38 096 992 9559 Инна (вайбер, вацап, телеграм)
Эл. почта: