The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Using the "SVY" module and sampling weights of STATA GUATEMALA
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 Go to previous message
Bridgette-DHS is currently offline  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.
 
Read Message
Read Message
Previous Topic: Percent of postpartum women with unmet need for contraception
Next Topic: creating strata and svyset of SPA datasets of Nepal
Goto Forum:
  


Current Time: Sat Nov 9 07:26:05 Coordinated Universal Time 2024