Hello, I am getting an invalid syntax error when I am try the following: I want ci to be summed only if n values are from the local i025. Could someone point me in the right direction on how to call for this variable?
local numst=42
local i025=floor(0.025*(`numst'-1))
local i975=ceil(0.975*(`numst'-1))
local i05=floor(0.050*(`numst'-1))
local i95=ceil(0.950*(`numst'-1))
quietly sum alpha
display as text "Difference in Differences coefficient=" as result _newline(2) r(mean)
sort asim
sum ci if _n==`i025'
Related Posts with Invalid Syntax when calling for local variable
non-parametric estimation of a global relationship with fixed effectsMy benchmark model is quadratic of the form Code: Yct=a+b1Xct+b2X-squaredct+Dc+ect , where Dct is…
Poisson regression - noconsDear all I am conducting a mirror image study on days of admission to hospital before and after a c…
Help Granger Causality testHi gyus! I would like to perform a Granger causality test after a VECM. Does anyone have an idea? S…
Adjusting the window of a Moving AverageDear all, I am currently constructing a 5-window and 7-window moving average to smooth out a time-s…
sum of specific consecutive obsHello Everyone, I use Stata 15. The table below shows customer ID, year, and the value of transact…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid Syntax when calling for local variable
Post a Comment