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)
Table of descriptive data. Possible to switch rows and columns using tabstat?Hello, In my dataset I have 3 groups (1, 2, 3) and 20 continous variables (A, B, C, etc. ) for each …
mean comparison for panel dataDear All, I have a panel data with three waves and i am comparing the mean difference (mean comparis…
Add shade in the graphDear all, I want to add shade in my graph when the variable corr_x is negative. Code: * Example ge…
How to estimate the marital status (Married and widowed) using the information on the Relationship of person to household headHello, everyone I am having a cross-sectional data on the relationship of person to household head. …
Correlation between two long time seriesDear all, I want to test the correlation between two time series with large T, for example, the pri…
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