Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: nldecompose and svy subpopulation

From   Steve Samuels <>
Subject   Re: st: nldecompose and svy subpopulation
Date   Tue, 5 Jun 2012 14:07:14 -0400

As a frequent poster to Statalist,  you should know to tell us where to get a non-officical command (SSC? 
somewhere else?).  Your error is in the subpop() specification,  which takes either the name of a 0/1 variable
 which indicates the subpopulation or an "if" expression.  See Example 1 of the "subpopulation
estimation" section of the Survey Manual.

Thus: "subpop(if sample_oaxaca==1)"  or, if sample_oaxaca is 0/1, "subpop(sample_oaxaca)" should work.


On Jun 5, 2012, at 1:26 PM, meenakshi beri wrote:

Hello Statalist,

Is svy subpopulation logit analyses compatible with nldecompose command (non-linear decomposition package by Sinning, Hahn and Bauer)? 

I have tried the following but it does not work:
nldecompose, by(female) bs bsoptions(reps(100)) regoutput:  svy, subpop(sample_oaxaca == 1) : logit x y z,  or

Am I doing something wrong or nldecompose does not work with svy subpopulation? Any help would be highly appreciated.

Meenakshi Beri
Graduate Teaching Assistant
Department of Economics
Wayne State University
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index