Using gret l for Principles of Econometrics, 4th Edition

Time-Series Plots

Gnuplot handles all the plotting in gretl. Gretl includes some functions that help to com­municate with gnuplot, which makes things much easier to do. On the other hand, if you have something really fancy to plot, you may have to use gnuplot directly to get the desired result. All-in-all, gretl’s graphical interface that works with gnuplot is quite easy to use and powerful.

Gretl’s time-series plot is really just an XY scatter plot against time with the —lines option used to connect the data point. It’s relatively primitive. Clicking on a graph brings up a list of things you can do, including edit the graph. Clicking the edit button brings up the plot control dialog box (Figure 4.16) where substantial customization can be done.

Gretl also has a facility to plot multiple series in separate graphs that appear on the same page. This is accomplished using the scatters command or View>Multiple graphs>Time-series from the main menu bar. There is no built-in facility for further editing these graphs, but you can save them in several formats. Examples of this are found below.

Подпись: Syntax setobs 4 setobs 1 setobs 12 setobs 5Подпись: 1990:1 —time-series 1952 —time-series 1990:03 —time-series 1950/01/06 —time-seriesResults

Quarterly data that start in 1990:1 Annual data starting in 1952 Monthly data starting in March, 1990 Daily data (5 day weeks) starting Jan. 6, 1950

Table 9.1: Data structure using setobs: Some examples for time-series

In this example time-series graphs are plotted for the U. S. unemployment rate and GDP growth from 1985 to 2009. The data are found in the okun. gdt data file.

1 open "@gretldirdatapoeokun. gdt"

2 setinfo g - d "percentage change in U. S. Gross Domestic Product, seasonally

3 adjusted" - n "Real GDP growth"

4 setinfo u - d "U. S. Civilian Unemployment Rate (Seasonally adjusted)" - n

5 "Unemployment Rate"

6 gnuplot g —with-lines —time-series —output=c:tempokun_g. plt

7 gnuplot u —with-lines —time-series —output=c:tempokun_u. plt

The two plots are shown in Figure 9.3. The graphs can be combined using the GUI by choosing View>Multiple graphs>Time-series. The result appears in Figure 9.4. The gretl command to generate multiple series in multiple graphs is

scatters g u

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

Using gret l for Principles of Econometrics, 4th Edition

Simulation

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 457 13 30 — Рашид - продажи новинок
e-mail: msd@msd.com.ua
Схема проезда к производственному офису:
Схема проезда к МСД

Партнеры МСД

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

Внимание! На этом сайте большинство материалов - техническая литература в помощь предпринимателю. Так же большинство производственного оборудования сегодня не актуально. Уточнить можно по почте: Эл. почта: msd@msd.com.ua

+38 050 512 1194 Александр
- телефон для консультаций и заказов спец.оборудования, дробилок, уловителей, дражираторов, гереторных насосов и инженерных решений.