Search found 52 matches

by Ozmando
Wed Feb 21, 2024 3:22 pm
Forum: Graphics, Reports, and Other Output
Topic: Help with IRFs-Please
Replies: 7
Views: 40653

Re: Help with IRFs-Please

You'd have to be more explicit about what you are hoping to get. @MCGRAPHIRF uses styles 1 (by default solid black, for the response) and 2 (by default solid blue, or dots in black and white) for the bounds. You can re-define those if you want. Thanks Tom. In the previous code that I used the graph...
by Ozmando
Tue Feb 20, 2024 3:34 am
Forum: Graphics, Reports, and Other Output
Topic: Help with IRFs-Please
Replies: 7
Views: 40653

Re: Help with IRFs-Please

I'm not sure what your plan is with the PAGE=ONE option, but a separate page for each variable means that it makes little sense to have a universal header (which is why you don't see one)---the header would be the same on each page. What's wrong with the colors? They're the usual black with blue (w...
by Ozmando
Mon Feb 19, 2024 2:14 pm
Forum: Graphics, Reports, and Other Output
Topic: Help with IRFs-Please
Replies: 7
Views: 40653

Re: Help with IRFs-Please

Do the draws with @MCVARDODRAWS . Then the @MCGRAPHIRF procedure can be used to do more specific graphs. (It sounds like you want the ONLYSHOCKS option on that). Thanks Tom for the very useful help. I have managed to modify the code. I am now left with two main issues, please. 1) header and footer ...
by Ozmando
Mon Feb 19, 2024 6:17 am
Forum: Graphics, Reports, and Other Output
Topic: Help with IRFs-Please
Replies: 7
Views: 40653

Help with IRFs-Please

Good day!, I am trying to generate the IFRs related to shock to my third variable (debt) on the other variables in particular the first one. I have tried few things but seems to get all other shocks. Any help/advice please? Thanks, ozey system(model=varmodel) variables inf govcons debt gdp rir lags ...
by Ozmando
Tue Mar 14, 2023 3:28 pm
Forum: Data: Reading, Writing, Transforming
Topic: Demeaning data
Replies: 2
Views: 33255

Re: Demeaning data

TomDoan wrote:That's one of the things that the PANEL instruction does.
panel(entry=1.0,indiv=-1.0) x / cx
removes the individual means from x to create cx.
Thanks Tom, fully appreciated.
Oz
by Ozmando
Mon Mar 13, 2023 8:01 am
Forum: Data: Reading, Writing, Transforming
Topic: Demeaning data
Replies: 2
Views: 33255

Demeaning data

Hi,
I please need help with demeaning variables, in RATS, before my main estimations.
The idea is to account for fixed-effects (without using the route of the individual dummies).
I have a list of 5 variables.
Thanks.
Oz
by Ozmando
Fri Mar 10, 2023 2:02 pm
Forum: Help With Programming
Topic: Code Error
Replies: 2
Views: 34734

Re: Code Error

You called it DUMMIES, not DUMMY. If DUMMY is supposed to be something other than the full set, you haven't defined it. You also have an issue here (and throughout the program): data(format=prn,nolabels,org=columns) 1970:01 2015:01 g t r p h "T" is a standard name for the time subscript i...
by Ozmando
Wed Mar 08, 2023 3:06 pm
Forum: Help With Programming
Topic: Code Error
Replies: 2
Views: 34734

Code Error

I please need help with fixing an error on this code: I have created a time dummy and country dummy but this seems to e nerate the error message: ## SX11. Identifier DUMMY is Not Recognizable. Incorrect Option Field or Parameter Order? >>>>onstant time dummy<<<< If the name isn't mistyped, it's poss...
by Ozmando
Fri Dec 24, 2021 7:48 am
Forum: Graphics, Reports, and Other Output
Topic: Help with Labelling-please
Replies: 2
Views: 35959

Re: Help with Labelling-please

If I understand you correctly, you want to replace the graph instruction in the inner loop with compute header="Response of "+varlabels(1,i)+" to "+shocklabels(1,j) graph(row=i,col=j,number=0,min=%minimum,max=%maximum,header=header) 3 (or something like that with the compute hea...
by Ozmando
Thu Dec 23, 2021 2:38 am
Forum: Graphics, Reports, and Other Output
Topic: Help with Labelling-please
Replies: 2
Views: 35959

Help with Labelling-please

Hi, trying to label each of the individual graphs (ifrs) based on a 3 variables VARS/llp. What I please need is to have a heading for each of the computed graphs. The code is a modified version of the original Jorda (2005) where the results of the VAR have been removed. The code is below: Thanks Oz ...
by Ozmando
Wed Sep 01, 2021 12:50 pm
Forum: Examples and Sample Code
Topic: Jorda(2005)—Local Projection Impulse Responses
Replies: 12
Views: 69302

Re: Jorda(2005)—Local Projection Impulse Responses

TomDoan wrote:Change this to graph 3 rather than 4, and delete the # baseirf(i,j) line

graph(row=i,col=j,number=0,min=%minimum,max=%maximum) 4
# baseirf(i,j)
# linprjirf(i,j)
# lower(j) / 3
# upper(j) / 3

Thanks Tom. All working fine now. Much appreciated.
Oz
by Ozmando
Mon Aug 30, 2021 2:47 pm
Forum: Examples and Sample Code
Topic: Jorda(2005)—Local Projection Impulse Responses
Replies: 12
Views: 69302

Re: Jorda(2005)—Local Projection Impulse Responses

You have to comment out the SPGRAPH instructions (two lines at the top, one at the bottom): *spgraph(hfields=nshock,vfields=%nvar,xlabels=varlabels,ylabels=shocklabels,$ * footer="Figure 5. Impulse Responses for the New Keynesian Model based on a VAR and Linear Projections") do i=1,%nvar ...
by Ozmando
Sun Aug 29, 2021 5:13 am
Forum: Examples and Sample Code
Topic: Jorda(2005)—Local Projection Impulse Responses
Replies: 12
Views: 69302

Re: Jorda(2005)—Local Projection Impulse Responses

This computes the impulse responses by local projections from Jorda(2005), "Estimation and Inference of Impulse Responses by Local Projections", American Economic Review , 95(1), pp 161-182. This does the New Keynesian model example (3 variable VAR using Cholesky factor shocks). is_exampl...
by Ozmando
Sun Mar 22, 2020 12:59 pm
Forum: Help With Programming
Topic: Help with MAT13 error
Replies: 2
Views: 9813

Re: Help with MAT13 error

I'm not sure what: comp j = 16 is supposed to be doing, since it's followed by the DO J. The error is in line 8 of the DO J loop, which is compute lower(j)(i)=frac(1) I'm guessing that the problem comes from having that SMPL 1 NDRAWS instruction. (Is NDRAWS a small number, at least relative to NSTE...
by Ozmando
Fri Mar 20, 2020 7:46 am
Forum: Help With Programming
Topic: Help with MAT13 error
Replies: 2
Views: 9813

Help with MAT13 error

I am geting the following error: ## MAT13. Store into Out-of-Range Matrix or Series Element The Error Occurred At Location 283, Line 8 of loop/block The last error shows that the problem is in the last line below at "end". Any help to solve the problem please? oz ** compute here IRF and ba...