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
Scalars missing in output of esttabHello, I have a question about esttab and more precisely to add scalars. I start with a spatial mo…
Help with R squared in Cox model with shared frailtyHi all, I am fitting a Cox model with shared frailty and I hope to get the (pseudo) R squared for m…
Warning:Variance matrix is non-symmetric or highly singular *NO DUMMY VARIABLES*Dear Statlisters, I am estimating a demand system with 4 goods, usingthe aidsills command, using Sta…
dividing variables by rowhi! I want to devide two variables on each row in the dataset. e.g. row1 variable 1 / variable 2 ro…
compare value different variables and rows hello, I want to compare values of two variable in different rows. For example vr1 vr2 10 20 20 30 …
Subscribe to:
Post Comments (Atom)
0 Response to Invalid Syntax when calling for local variable
Post a Comment