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
Scatter plot with linear fit of two-period independent variable and one dependent variable. Dear All, I've data on y for period 1 and data on x for periods 4 and 5. I want to graphically dep…
Running a loop n times with different outcome variable and storing the p values in an output matrixI am trying to run loop within loop and get the p values in the matrix. I want to assign random trea…
Fama MacBeth Regression with missing explanatory variablesI am trying to run a Fama-MacBeth regression with multiple independent variables. The dependent vari…
Can you define outreg2 options as a macro?I want to print estimation output with outreg2 as a tex file. I combine several results for which on…
How to use Loocv?I am studying econometrics for a PhD and am more familiar with STATA, so I am currently using that f…
Subscribe to:
Post Comments (Atom)
0 Response to probleme to perform ado function
Post a Comment