Search found 40 matches

by KrilleJ
Thu Jan 25, 2018 4:08 am
Forum: Estimation
Topic: Regression in Hamilton filter add-in
Replies: 2
Views: 4250

Re: Regression in Hamilton filter add-in

Great, I will.
by KrilleJ
Tue Jan 23, 2018 2:00 am
Forum: Estimation
Topic: Regression in Hamilton filter add-in
Replies: 2
Views: 4250

Regression in Hamilton filter add-in

Looking at the Hamilton filter add-in it seems as if a regression on the four most recent lags is run and direct forecasts are made h periods into the future based in the estimation results in order to get a trend estimate. That is: y_t=c(1)+c(2)*y_{t-1}+c(3)*y_{t-2}+c(4)*y_{t-3}+c(5)*y_{t-4} is est...
by KrilleJ
Thu Sep 28, 2017 4:17 am
Forum: Estimation
Topic: Null hypothesis on intercept in unit root test
Replies: 3
Views: 4348

Re: Null hypothesis on intercept in unit root test

That is absolutely true. The critical values depends both on what deterministic components you include and whether you test a simple or joint hypothesis. Tabulations exist for all of them. As long as you know what hypothesis you test, you can find the right critical values. The built-in EViews proce...
by KrilleJ
Wed Sep 27, 2017 5:39 am
Forum: Estimation
Topic: Null hypothesis on intercept in unit root test
Replies: 3
Views: 4348

Re: Null hypothesis on intercept in unit root test

when perorming the ADF tests.In the EViews test procedures there are no restrictions placed on the deterministic components of the test regression. Under a) a pure AR model (without deterministic trend components) is specified: y_t=\rho*y_{t-1}+\eps_t. The test performed is on \rho. Under b) and c),...
by KrilleJ
Tue Mar 21, 2017 8:39 am
Forum: Estimation
Topic: Long-run variance and KPSS testing
Replies: 4
Views: 4842

Long-run variance and KPSS testing

Hi, I am doing some unit root testing using the KPSS test. When selecting the HAC variance in this test I can select the Bartlett window and set the user specified value of of the bandwidth to 1. This will use the autocovariance at lags zero (i.e. the varaince) and one (the first autocovariance) in ...
by KrilleJ
Mon Feb 27, 2017 2:45 am
Forum: Programming
Topic: Call Matlab from Eviews (COM Automation)
Replies: 2
Views: 3855

Re: Call Matlab from Eviews (COM Automation)

Hi.

Have you tried:

Code: Select all

handle=actxserver('Eviews.Manager');
application=handle.GetApplication;


If that works you can use:

Code: Select all

application.Run('cd C:\MyEViewsHacks\');


to execute commands in EViews from Matlab.

/K
by KrilleJ
Mon Feb 27, 2017 2:41 am
Forum: Programming
Topic: "Solve Control for Target" to new variable
Replies: 1
Views: 2519

"Solve Control for Target" to new variable

Hi. I have a question regarding "Solve Control for Target". Suppose that I have a model with the equations: y1=x1 y2=x2 sum=x1+x2 Suppose that y1 , y2 and sum are endogeneous and that x1 and x2 are exogeneous and take the values 1 and 2 throughout the sample. Also, the series target_zero c...
by KrilleJ
Thu Feb 02, 2017 6:15 am
Forum: Estimation
Topic: Lag Selection and Johansen Cointegration Test
Replies: 1
Views: 3160

Re: Lag Selection and Johansen Cointegration Test

Perhaps you have too many variables so that you loose all you DoFs?
by KrilleJ
Mon Jan 30, 2017 2:41 am
Forum: Econometric Discussions
Topic: Bayesian VAR
Replies: 3
Views: 4728

Re: Bayesian VAR

The easiest way is to estimate the small VAR model and then use the hyper parameters of the Litterman prior to achieve the same in-sample fit (in whatever way it is measured) for the interest rate equation in the larger model.
by KrilleJ
Fri Jan 27, 2017 4:55 am
Forum: Econometric Discussions
Topic: Durbin-Wu-Hausman Test
Replies: 3
Views: 5608

Re: Durbin-Wu-Hausman Test

If you generally use the following formula for the DWH test: TestStat=d' * inv(Est Asy Var [d]) * d where d is the difference between the IV and LS estimators, you can use the following command to extract the components needed: matrix MyOLSBeta=OLS_eq.@coef matrix MyOLSCov=OLS_eq.@coefcov matrix MyI...
by KrilleJ
Wed Jan 25, 2017 8:21 am
Forum: Estimation
Topic: Forecasting with VAR and VECM
Replies: 1
Views: 2804

Re: Forecasting with VAR and VECM

Should you expect the same value when you do simulations?

Could you use the mean over the various baselines?

/K
by KrilleJ
Wed Jan 25, 2017 8:13 am
Forum: Econometric Discussions
Topic: Bayesian VAR
Replies: 3
Views: 4728

Re: Bayesian VAR

When you run a BVAR, you have to set your priors. This can be done in several ways. The way chosen in your reference is to match an in-sample fit. But you can choose your priors other ways than this. Usually, you transform the variables to a stationary VAR-representation before applying Bayesian est...
by KrilleJ
Wed Jan 25, 2017 4:16 am
Forum: Programming
Topic: generating a series
Replies: 2
Views: 3114

Re: generating a series

In the case when you can construct the series analytically, you can use:

series MySer=(whatever formula)

Otherwise you can approximate it by a loooooong finite sum (provided that the infinite sum converges)

/K
by KrilleJ
Wed Jan 18, 2017 5:44 am
Forum: Estimation
Topic: Restricting the dependent variable
Replies: 3
Views: 4188

Re: Restricting the dependent variable

Perhaps logit-type specifications could work:

fraction_i=exp(x_i*beta_i)/exp(sum_i x_i*beta_i)


/K
by KrilleJ
Fri Jan 13, 2017 8:00 am
Forum: Programming
Topic: Extract path
Replies: 1
Views: 2289

Extract path

Is there any convenient (pre-built) way to extract the path part of a string that is returned from uifiledlg? That is, from @uifiledlg(%myFile, "prg", "open") could I extract the path part of %myFile and separate it from the file part? Best, Kristian Edit: The current clunky solu...

Go to advanced search