Using gret l for Principles of Econometrics, 4th Edition

Interval Estimation

Estimating a confidence interval using the hip data is also easy to do in gretl. Since the true variance, a2, is not known, the t-distribution is used to compute the interval. The interval is

where tc is the desired critical value from the student-t distribution. In our case, N = 50 and the desired degrees of freedom for the t-distribution is N — 1 = 49. The gretl command critical(t,49,.025 can be used to return the 0.025 critical value from the t49 distribution shown in Figure C.1

The computation is

1 open "@gretldirdatapoehip. gdt"

2 scalar y_sd = sd(y)

3 scalar ybar_sd = y_sd/sqrt($nobs)

4 scalar lb = mean(y) - 2.01*ybar_sd

5 scalar ub = mean(y) + 2.01*ybar_sd

which indicates that the interval [16.64,17.67] works 95% of the time. Note these numbers differ slightly from those in your book because we used 2.01 as our critical value. Hill et al. carry their critical value out to more decimal places and hence the difference. You can use gretl’s internal functions to improve accuracy. Replace 2.01 with critical(t,$nobs-1,0.025) and see what happens!

1 scalar lb = mean(y) - critical(t,$nobs-1,0.025)*ybar_sd

2 scalar ub = mean(y) + critical(t,$nobs-1,0.025)*ybar_sd

3 printf "nThe 95% confidence interval is (%5.4f, %6.4f)n",lb, ub

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

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 Александр
- телефон для консультаций и заказов спец.оборудования, дробилок, уловителей, дражираторов, гереторных насосов и инженерных решений.