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)
Coefplot - colorDear all, I am using coefplot to display the coefficient estimates of one variable from differen…
Dealing with omitted variable bias in survival analysesHi, I would like to know how I could deal with an omitted variable bias in a survival analysis. My …
Threshold regression using time series dataDear Community, I am a user of Stata 15. I am trying to estimate the threshold effects of inflation…
Panel Data Three Dimensions "repeated time values within panel"Hello everyone, First of all, I would like to apologize in advance if I commit any mistake on this …
PSM overlapp assumptionHi all, I have this result from using PSM teffects overlap. Can someone please tell me if there is a…
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