Dear,
Sorry in advance if I'm maybe not using the right STATA-language!
I'm using STATA 16.1 on Windows 10.
I'm using the conindex command to calculate concentration index and I have the data on national level and I want to do it by state. (I'm also using SVYSET).
conindex ml_act if hml16<5 [aweight=wt3], rankvar(hv270) truezero bounded limits(0 1) cluster(hv001) compare(shstate)
Since the sample is small in several states the answer will be zero and I'll get this message:
The mean of the variable (ml_act) is 0 - the standard concentration index is n
> ot defined in this case.
r(498);
So to override it and get the rest of the information I use "capture" before the code:
capture: conindex ml_act if hml16<5 [aweight=wt3], rankvar(hv270) truezero bounded limits(0 1) cluster(hv001) compare(shstate)
The code just get run but no results is given and even no error code.
This code works for my elderly collegue and I have no idea why it's not working for me!
I've tried to just paste the code into the command instead of using the DO-file and such and I'm out of ideas.
Maybe it is different for different computer systems?
Does anyone have an idea how I can do anything to run the code and get the information?
Kind regards
Related Posts with No data is running with adding "capture" to my code, but there is no new error message (this code works for my elder collegue)
Using xtivreg2 for Simultaneous Equation model with fixed effectsHi, I am using a simultaneous equations model with fixed effects estimation procedure. I was using x…
Variable splittingI admit that the split syntax has been explained severally but I don't seem to get an answer that ca…
Shrinkage of estimates towards group mean using Mixed Effects Models for a binary outcomeHello Statalist, I have survey data that collected individual level use of a bed net against mosqu…
Instrumented diff-in-diff with ivreg2Dear Statalist, I am struggling with an endogenous treatment in a diff-in-diff model I am using (at…
[Panel] Preceding observations with values lower than that of the current observationHi, I am using panel data with the following structure: a single task (Task_id, also the panel id) …
Subscribe to:
Post Comments (Atom)
0 Response to No data is running with adding "capture" to my code, but there is no new error message (this code works for my elder collegue)
Post a Comment