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
Capture change in one variable while different variable is constantDear Statalisters, I am working with a longitudinal dataset. I'm trying to create a variable to cap…
Hansen issuewhy i am not getting Hansen statistics? the command is as follows xtabond2 fg_ta l.fg_ta size age ia…
tabm and percentagesHello, This is a question that has come up after my last couple posts on the Statalist and is now a…
Plotting marginal effects of interactions (containing factor variables) with the grinter commandHello, I am stuck at plotting the marginal effect of the factor variable i.Left_right_placement reg…
calculating distance in StataDear All, I would like to know how I can calculate distance in stata between two cities in a country…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid Syntax when calling for local variable
Post a Comment