Search found 12 matches

by HypatiaCU
Tue Feb 10, 2015 9:57 am
Forum: VARs (Vector Autoregression Models)
Topic: Identifying VARs with sign restrictions
Replies: 9
Views: 11936

Re: Identifying VARs with sign restrictions

Using sign restrictions generally, yes. Once one shock is chosen, the other is forced by orthogonality. Thank you, Tom. After I find the shock from the penalty function, how to construct the impulse responses of the orthogonal shock (bivariate VAR case). Should I change this line of code (ewise goo...
by HypatiaCU
Mon Feb 09, 2015 3:51 pm
Forum: VARs (Vector Autoregression Models)
Topic: Identifying VARs with sign restrictions
Replies: 9
Views: 11936

Re: Identifying VARs with sign restrictions

The G's are the basis weights on the subspace that's orthogonal to the previously chosen impulse vectors. The first has NVAR-1 free parameters (one degree of freedom being lost because the length has to be one), the second has NVAR-2 etc. Dear Tom, Only one shock with sign restrictions in a 2-varia...
by HypatiaCU
Sun Jan 25, 2015 3:10 pm
Forum: VARs (Vector Autoregression Models)
Topic: Identifying VARs with sign restrictions
Replies: 9
Views: 11936

Re: Identifying VARs with sign restrictions

Dear Tom, I want to impose sign restrictions 'UhligPenalty' on two shocks simultaneously in the 2-variable VAR model. [y1_t,y2_t]'=A*[y1_{t-1},y2_{t-1}]'+[error1, erro2]’, where [error1, erro2]’ = [c11 c12; c21 c22]*[orthogonal_shock1, orthogonal_shock2]'. I am reading the code replicating Mountford...
by HypatiaCU
Tue Jan 13, 2015 6:56 pm
Forum: VARs (Vector Autoregression Models)
Topic: Identifying VARs with sign restrictions
Replies: 9
Views: 11936

Identifying VARs with sign restrictions

Dear Tom, I am applying sign restrictions on a 2-variable VAR. [y1_t,y2_t]'=A*[y1_{t-1},y2_{t-1}]'+[error1, erro2]’, where [error1, erro2]’ = [c11 c12; c21 c22]*[orthogonal_shock1, orthogonal_shock2]'. The restriction is on the contemporaneous impact. I would like to use Uhlig’s penalty function app...
by HypatiaCU
Mon Sep 29, 2014 10:37 am
Forum: VARs (Vector Autoregression Models)
Topic: Variance Decomposition
Replies: 13
Views: 17570

Re: Variance Decomposition

Thanks a lot.
When I do ERRORS(model=mymodel+xdef, STEPS=10), it seems the variance decomposition result of y1 and y2 are changed. They are not the same as the result from ERRORS(model=mymodel, STEPS=10). Why?
by HypatiaCU
Tue Sep 23, 2014 3:20 pm
Forum: VARs (Vector Autoregression Models)
Topic: Variance Decomposition
Replies: 13
Views: 17570

Variance Decomposition

Hi, I am working on variance decomposition of a simple triangular VAR with 1 lag. [y1_t,y2_t]'=A*[y1_{t-1},y2_{t-1}]'+[error1, erro2]'. I know how to do the standard variance decomposition. But what I am interested in is a variable x_t = y2_t - y1_t + y1_{t-1} How to do the variance decomposition of...
by HypatiaCU
Thu May 08, 2014 12:41 pm
Forum: VARs (Vector Autoregression Models)
Topic: How one SD shock can be converted into percentage shock
Replies: 24
Views: 36924

Re: How one SD shock can be converted into percentage shock

Hi, Can you tell us how to change one SD shock to 1% shock in a Cholesky IRF? For choleksy irf, I use impulse(model=VAR1, result=impuless,decomp=%decomp(%sigma),steps=20) . Then I will get one SD shock cholesky irf. Depending on the order of the VAR, a shock on the first variable will affect the oth...
by HypatiaCU
Mon Feb 17, 2014 11:06 am
Forum: Help With Programming
Topic: SUR Gibbs sampling problem
Replies: 7
Views: 9952

Re: SUR Gibbs sampling problem

Thank you. That is what I want to do initially: I manually calculated the error correction term and put it into SUR. But I am worried that in gibbs sampling, it will be treated as independent variables. It is actually correlated with other inputs. Could I build a SUR notifying the relation between R...
by HypatiaCU
Mon Feb 17, 2014 10:46 am
Forum: Help With Programming
Topic: SUR Gibbs sampling problem
Replies: 7
Views: 9952

Re: SUR Gibbs sampling problem

Which types of restrictions and at what point in the analysis? CATS is designed to do VECM's with restrictions. I would like to impose the non-significant coefficients in VECM to be zero. Is there a way to do it in RATs? For example, *step 1 run VECM EQUATION(COEFFS=||1||,NOCONSTANT) RISKPRE S # FV...
by HypatiaCU
Mon Feb 17, 2014 8:23 am
Forum: Help With Programming
Topic: SUR Gibbs sampling problem
Replies: 7
Views: 9952

Re: SUR Gibbs sampling problem

Thanks a lot.
Could I impose coefficient restrictions on VECM? Is there a command on doing that?
by HypatiaCU
Sat Feb 08, 2014 10:17 pm
Forum: Help With Programming
Topic: SUR Gibbs sampling problem
Replies: 7
Views: 9952

SUR Gibbs sampling problem

Hi, I am working on a VECM and use Gibbs sampling to construct the confidence interval for the coefficients. Firstly, I run the VECM. Then I identify non-significant coefficients. In the second step, I restrict the non-significant coefficients to be 0. So the VECM model becomes SUR. Afterwards, I ru...
by HypatiaCU
Tue Nov 20, 2012 1:03 pm
Forum: Help With Programming
Topic: PROCEDURE Writing
Replies: 1
Views: 4914

PROCEDURE Writing

Hi I am trying to write a procedure, but it doesn't work out well. If I put the code directly into the program it works fine, it doesn't work as a SRC file. I never write a procedure before. I think there is something I missed at the beginning. I don't know how to use 'local' or 'option'. Are those ...