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
Hep with spmap option polygonHi, Im working in a map of the metro area of Medellín, Colombia. So far good, but when I try to impo…
Relabel using grc1legI am trying to show 4 different graph plots in one same illustration. I am using the command grc1leg…
Should I add age^2 when working with panel data or not?Hi all, I am analyzing the effect of marital status on life satisfaction for a period of 32 years o…
asdoc: version update - New features of font, table header formatting, etc. Export results to Word from StataVersion 2.3.3.2, dated Feb 23, 2019, is finally here, thanks for Kit Baum for updating it on SSC. Th…
Help with scheme entries affecting rarea plots using marginsplotI am trying to create a scheme that changes the intensity, opacity, or color of a marginsplot when t…
Subscribe to:
Post Comments (Atom)
0 Response to probleme to perform ado function
Post a Comment