Re: Using the "SVY" module and sampling weights of STATA GUATEMALA [message #13830 is a reply to message #13566] |
Mon, 08 January 2018 15:31 |
Bridgette-DHS
Messages: 3190 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS Stata Specialist, Tom Pullum:
We apologize for the long delay with this response. You have probably already found an answer.
You do not include your definition of "keeptag", as in "subpop(keeptag)". When I have had the error statement you mention, it has been because of an improper specification of the argument of subpop. Here, the data will be reduced to the cases with keeptag=1. You must define the argument so that it takes the value 1 for the cases you want to include. For other cases, you assign keeptag=0 or keeptag=. At least that's how I always specify the subpopulation.
I have never used subpop followed by lincom. It is possible that you also need to explicitly limit the cases for which lincom is applied to the cases with keeptag=1. However, I doubt that that is the problem.
|
|
|