Announcement

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

  • Teffect psmatch with sample weights

    I am using propensity score matching on data that requires using sample weights. The data comes from the medical expenditure panel survey. I am using teffect psmat h code but it is not allowing an option for weights. Any suggestions on how to calculate this model with this type of data? Thank you.

  • #2
    The syntax definitely allows for weights.

    teffects psmatch (ovar) (tvar tmvarlist [, tmodel]) [if] [in] [weight] [, stat options]
    What did you try?

    Comment


    • #3
      I tries it, and it did not work. I for the following error message:

      . teffects psmatch ( ttlpx ) (time age female white) [weight=weight]

      (frequency weights assumed)
      may not use noninteger frequency weights

      Comment


      • #4
        Sampling weights are denoted pweights. See

        Code:
        help weights
        So you want:

        Code:
        teffects psmatch ( ttlpx ) (time age female white) [pweight=weight]

        Comment


        • #5
          Thank you, but it still it is giving me an error message:

          teffects psmatch ( ttlpx ) (time age female white) [pweight=weight]
          pweights not allowed
          r(101);


          Any other suggestions, please?

          Comment


          • #6
            See George Ford's suggestion to look at psmatch2's documentation which has a discussion on sampling weights and some recommendations: https://www.statalist.org/forums/for...sample-weights

            Code:
            ssc install psmatch2, replace
            help psmatch2
            Last edited by Andrew Musau; 10 Mar 2023, 02:29.

            Comment


            • #7
              can ononly use fweight with teffects psmatch. says so in help.

              Comment


              • #8
                OK. Thank you.

                Comment

                Working...
                X