Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • cdeco with complex survey design

    Hi,

    I am using cdeco to decompose the effects of characteristics and coefficients in a quantile regression setting. This is a Oaxaca-Blinder decomposition type approach. cdeco is a user-written command provided by Chernozhukov, Fernández-Val and Melly (2013) which extends the work of Melly (2005). The code is available from Melly's personal website: http://www.econ.brown.edu/fac/Blaise...e_counter.html.

    My data comes from a complex survey design. Therefore I use the svy command in stata as follows:


    svyset [pweight=w_fstuwt], brrweight(w_fstr1-w_fstr80) vce(brr) fay(0.5) mse

    When I run the command:

    svy brr: cdeco pv $correl, by(year2) weight(1)

    I receive this error:

    cdeco is not supported by svy with vce(brr); see help svy estimation for a list of Stata
    estimation commands that are supported by svy
    r(322);

    Does this mean that there is no way to account for the survey design with this command -cdeco-?

    Moreover, is there a way to run the -qreg- command accounting for my survey design?

    Thanks?

  • #2
    help svy estimation will show you a list of models which take the svy prefix. I am running Stata 13 which does not indicate that you can do qreg with survey data. Perhaps Stata 14 will, but I doubt it.
    Richard T. Campbell
    Emeritus Professor of Biostatistics and Sociology
    University of Illinois at Chicago

    Comment


    • #3
      qreg is not blessed in Stata 14 either.
      -------------------------------------------
      Richard Williams, Notre Dame Dept of Sociology
      StataNow Version: 19.5 MP (2 processor)

      EMAIL: [email protected]
      WWW: https://www3.nd.edu/~rwilliam

      Comment


      • #4
        qreg2 by Joao Santos Silva (SSC) can analyze clustered data. You can get a valid survey analysis if you can include stratum and weight information as covariates (Pfeffermann, 1993, p. 323). In some international reproductive health studies, for example, weights are determined by stratum and by the number of eligible respondents in a household (since one woman is picked at random).

        Reference:

        Pfeffermann, D. 1993. The role of sampling weights when modeling survey data. International Statistical Review/Revue Internationale de Statistique 317-337.
        Steve Samuels
        Statistical Consulting
        [email protected]

        Stata 14.2

        Comment


        • #5
          Originally posted by Charlotte Rogers View Post
          Hi,

          I am using cdeco to decompose the effects of characteristics and coefficients in a quantile regression setting. This is a Oaxaca-Blinder decomposition type approach. cdeco is a user-written command provided by Chernozhukov, Fernández-Val and Melly (2013) which extends the work of Melly (2005). The code is available from Melly's personal website: http://www.econ.brown.edu/fac/Blaise...e_counter.html.

          My data comes from a complex survey design. Therefore I use the svy command in stata as follows:


          svyset [pweight=w_fstuwt], brrweight(w_fstr1-w_fstr80) vce(brr) fay(0.5) mse

          When I run the command:

          svy brr: cdeco pv $correl, by(year2) weight(1)

          I receive this error:

          cdeco is not supported by svy with vce(brr); see help svy estimation for a list of Stata
          estimation commands that are supported by svy
          r(322);

          Does this mean that there is no way to account for the survey design with this command -cdeco-?

          Moreover, is there a way to run the -qreg- command accounting for my survey design?

          Thanks?
          I'm blocked from getting code of cdeco on Melly's personal website. Could you please send me the ado/do/hlp file of cdeco?

          Comment


          • #6

            I'm blocked from getting code of cdeco on Melly's personal website. Could you please send me the ado/do/hlp file of cdeco?
            Thanks

            Comment


            • #7
              hello, I'm blocked from getting code of cdeco on Melly's personal website too. Could you please send me the ado/do/hlp file of cdeco?
              Thanks

              Comment

              Working...
              X