Dears,
i am a new one on this forum and on stata, thank you for your help
my question is :
I want to run an ado program according to the following program:
Part1: .ado
* program to do rolling granger causality test
. capt prog drop rgranger
. prog rgranger, rclass
syntax varlist(min=2 numeric ts) [if] [in] [, Lags(integer 2)]
var `varlist´ `if´ `in´, lags(1/`lags´)
vargranger
matrix stats = r(gstats)
return scalar s2c = stats[3,3]
return scalar s2i = stats[6,3]
return scalar s2y = stats[9,3]
end
Part2:
rgranger lconsumption linvestment lincome, lags(4)
Despite the fact that I save part 1 in an .ado file and put it in "PLUS: c: \ ado \ plus ", when I run rolling as shown in part 2,
I get the message : invalid name.
Please is there someone who can help me overcome this problem,
thank you in advance
Related Posts with probleme to perform ado function
How to deal with panel dataset with variables in fractional form?I am dealing with a panel dataset in which both the DV and IVs are in fractional form. i.e. 0 to 1. …
robustate: a new Stata module for robust estimation of the average treatment effect (ATE)robustate: a new Stata module for estimation and inference of the average treatment effect (ATE) rob…
Setting base year with interaction of continuous variable - panel dataHi. I am working with panel data, and have a continuous treatment variable x. I am interested in th…
Merging conditional on one range of dates falling within another range of datesHi. I have two sets of data, set 1 with variables HDR_startdate and HDR_enddate, and set 2 with vari…
Survival Analysis (Discrete hazard proportional odd)Dear researchers, I might have asked this question before, but I didn't get an adequate answer, I mi…
Subscribe to:
Post Comments (Atom)
0 Response to probleme to perform ado function
Post a Comment