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
Generating new variable as a function of most common observation in another variableHey everyone! I am trying to create a concentration index for occupation across States for different…
xtivreg postestimation commands for endogeneity, week instrument and over-identification testHi, I'm solving simultaneous equations with endogenous variable, hence choose 2sls. I've panel data…
Diagnostics for melogitI wonder if anyone can help me with the commands for diagnostics and model fitting for a multi level…
Time Series. Problem with sample size and ForecastingDear Stata Forum member, I hope you are having a good day. I am conducting research to analyze the …
xtpmg or xtmg?Hello, I want to understand the difference between these two estimators and how well they can estim…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid Syntax when calling for local variable
Post a Comment