Announcement

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

  • export -pstest- results to word

    Dear Statalist,

    I'm runing a psm and I did -psmatch2- and then -pstest-, just a quick question on how can I export the -pstest- table comparing the differences between treatment and control groups before and after matching to word? I know of course I can manually create a table, but is there a quicker way? I searched on statalist there are several similar questions but they are unanswered.

    Thanks a lot in advance.

  • #2
    Originally posted by Lucy Garcia View Post
    Dear Statalist,

    I'm runing a psm and I did -psmatch2- and then -pstest-, just a quick question on how can I export the -pstest- table comparing the differences between treatment and control groups before and after matching to word? I know of course I can manually create a table, but is there a quicker way? I searched on statalist there are several similar questions but they are unanswered.

    Thanks a lot in advance.
    Same issue is here with me

    Comment


    • #3
      Hi Lucy Garcia, could you solve your problem? If so, it would be nice if you could share your appraoch

      Comment


      • #4
        Here is the soluation
        sysuse auto, clear *regress price on foreign in unmatched sample regress price foreign *regress price on foreign in matched (on mpg and rep78) sample psmatch2 foreign mpg rep78 asdoc regress price foreign [aw=_weight] or eststo: regress price foreign [aw=_weight] using exmple.rtf, *alternatively psmatch2 foreign mpg rep78, out(price) This Post is possible with the Help of Esteem Øyvind Snilsberg

        Comment


        • #5
          Originally posted by Sattar Khan View Post
          Here is the soluation
          sysuse auto, clear *regress price on foreign in unmatched sample regress price foreign *regress price on foreign in matched (on mpg and rep78) sample psmatch2 foreign mpg rep78 asdoc regress price foreign [aw=_weight] or eststo: regress price foreign [aw=_weight] using exmple.rtf, *alternatively psmatch2 foreign mpg rep78, out(price) This Post is possible with the Help of Esteem Øyvind Snilsberg
          This will be more presentable
          HTML Code:
          sysuse auto, clear
          
          *regress price on foreign in unmatched sample
          regress price foreign 
          
          *regress price on foreign in matched (on mpg and rep78) sample
          psmatch2 foreign mpg rep78
          asdoc regress price foreign [aw=_weight]
          or
          eststo: regress price foreign [aw=_weight]
          esttab using example.rtf,
          
          *alternatively
          asdoc/esttab psmatch2 foreign mpg rep78, out(price)

          Comment


          • #6
            Thank you! The asdoc command works
            Would you also know how to export it in tex-format?

            Best,
            Kathrin

            Comment


            • #7
              Originally posted by Lucy Garcia View Post
              Dear Statalist,

              I'm runing a psm and I did -psmatch2- and then -pstest-, just a quick question on how can I export the -pstest- table comparing the differences between treatment and control groups before and after matching to word? I know of course I can manually create a table, but is there a quicker way? I searched on statalist there are several similar questions but they are unanswered.

              Thanks a lot in advance.

              Hi Lucy,

              If you add "asdoc" before your pstest line, you will get the Word file that you need.

              I hope it helps, regards.

              Comment


              • #8
                Good news for asdocx users, asdocx now supports pstest. See this post for more details.
                Regards
                --------------------------------------------------
                Attaullah Shah, PhD.
                Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
                FinTechProfessor.com
                https://asdocx.com
                Check out my asdoc program, which sends outputs to MS Word.
                For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

                Comment

                Working...
                X