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
Help with 2SLS modellingHello everyone, This question is from a paper that I recently read; Laeven.L, and Levine.R, (2009),…
Estimate monthly data with annual time series dataI would like to calculate an estimate of the monthly population with population data sorted by regio…
ttest or xtmixedHello everybody, excuse me for my english. I am a french resident and i am doing a research about t…
Adding up variables with the same valueHi All, Seeking help on adding up variables (columns) with the same values. I have variables diagn…
Panel Data Survival AnalysisI have panel data of 10 firms over 10 years. id=1,2,....,10 and t=1,2,3.....,10. Each firms joins a …
Subscribe to:
Post Comments (Atom)
0 Response to probleme to perform ado function
Post a Comment