Import Stata 15 output into Latex











up vote
0
down vote

favorite












I know you may have seen this question dozens of times, but I still didn't find a helpful answer. I have to display some stata tables (descriptives, regressions, ...) in my uni research, but I don't know if there is a general way to do this. I do not have any command I can show you since I really don't know where to start from. I checked the estout command, but I should display the output exactly as it is in stata. I don't really want to do a screenshot of the output and import it in latex with includegraphics.



I have a .dta stata file and I wrote the necessary codes in my .do file. I wonder if there is a package I can use to let latex read the stata codes. I read that I have to define the .dta file in latex and then type the .do file codes in latex to let him generate the appropriate output. Does anyone know how to do this?



Again, sorry for not providing any code.










share|improve this question














bumped to the homepage by Community 36 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • since most of us won't have seen a stata data file you might at least show a small example file and describe what you want the typeset output to be (I assume it's some kind of text format, not binary data?)
    – David Carlisle
    Apr 10 at 17:19










  • the following link shows how data in Stata are organized: stata.com/features/overview/data-editor . Typing command in the To do file like regress mathsc6 treated dadedr4 momedr4 relig famsize, which is the multiple regression code. It then displays the following output in the .dta file: stats.idre.ucla.edu/stata/output/regression-analysis-2
    – rjkvc
    Apr 10 at 17:26

















up vote
0
down vote

favorite












I know you may have seen this question dozens of times, but I still didn't find a helpful answer. I have to display some stata tables (descriptives, regressions, ...) in my uni research, but I don't know if there is a general way to do this. I do not have any command I can show you since I really don't know where to start from. I checked the estout command, but I should display the output exactly as it is in stata. I don't really want to do a screenshot of the output and import it in latex with includegraphics.



I have a .dta stata file and I wrote the necessary codes in my .do file. I wonder if there is a package I can use to let latex read the stata codes. I read that I have to define the .dta file in latex and then type the .do file codes in latex to let him generate the appropriate output. Does anyone know how to do this?



Again, sorry for not providing any code.










share|improve this question














bumped to the homepage by Community 36 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • since most of us won't have seen a stata data file you might at least show a small example file and describe what you want the typeset output to be (I assume it's some kind of text format, not binary data?)
    – David Carlisle
    Apr 10 at 17:19










  • the following link shows how data in Stata are organized: stata.com/features/overview/data-editor . Typing command in the To do file like regress mathsc6 treated dadedr4 momedr4 relig famsize, which is the multiple regression code. It then displays the following output in the .dta file: stats.idre.ucla.edu/stata/output/regression-analysis-2
    – rjkvc
    Apr 10 at 17:26















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I know you may have seen this question dozens of times, but I still didn't find a helpful answer. I have to display some stata tables (descriptives, regressions, ...) in my uni research, but I don't know if there is a general way to do this. I do not have any command I can show you since I really don't know where to start from. I checked the estout command, but I should display the output exactly as it is in stata. I don't really want to do a screenshot of the output and import it in latex with includegraphics.



I have a .dta stata file and I wrote the necessary codes in my .do file. I wonder if there is a package I can use to let latex read the stata codes. I read that I have to define the .dta file in latex and then type the .do file codes in latex to let him generate the appropriate output. Does anyone know how to do this?



Again, sorry for not providing any code.










share|improve this question













I know you may have seen this question dozens of times, but I still didn't find a helpful answer. I have to display some stata tables (descriptives, regressions, ...) in my uni research, but I don't know if there is a general way to do this. I do not have any command I can show you since I really don't know where to start from. I checked the estout command, but I should display the output exactly as it is in stata. I don't really want to do a screenshot of the output and import it in latex with includegraphics.



I have a .dta stata file and I wrote the necessary codes in my .do file. I wonder if there is a package I can use to let latex read the stata codes. I read that I have to define the .dta file in latex and then type the .do file codes in latex to let him generate the appropriate output. Does anyone know how to do this?



Again, sorry for not providing any code.







tables output






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 10 at 17:14









rjkvc

446




446





bumped to the homepage by Community 36 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 36 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • since most of us won't have seen a stata data file you might at least show a small example file and describe what you want the typeset output to be (I assume it's some kind of text format, not binary data?)
    – David Carlisle
    Apr 10 at 17:19










  • the following link shows how data in Stata are organized: stata.com/features/overview/data-editor . Typing command in the To do file like regress mathsc6 treated dadedr4 momedr4 relig famsize, which is the multiple regression code. It then displays the following output in the .dta file: stats.idre.ucla.edu/stata/output/regression-analysis-2
    – rjkvc
    Apr 10 at 17:26




















  • since most of us won't have seen a stata data file you might at least show a small example file and describe what you want the typeset output to be (I assume it's some kind of text format, not binary data?)
    – David Carlisle
    Apr 10 at 17:19










  • the following link shows how data in Stata are organized: stata.com/features/overview/data-editor . Typing command in the To do file like regress mathsc6 treated dadedr4 momedr4 relig famsize, which is the multiple regression code. It then displays the following output in the .dta file: stats.idre.ucla.edu/stata/output/regression-analysis-2
    – rjkvc
    Apr 10 at 17:26


















since most of us won't have seen a stata data file you might at least show a small example file and describe what you want the typeset output to be (I assume it's some kind of text format, not binary data?)
– David Carlisle
Apr 10 at 17:19




since most of us won't have seen a stata data file you might at least show a small example file and describe what you want the typeset output to be (I assume it's some kind of text format, not binary data?)
– David Carlisle
Apr 10 at 17:19












the following link shows how data in Stata are organized: stata.com/features/overview/data-editor . Typing command in the To do file like regress mathsc6 treated dadedr4 momedr4 relig famsize, which is the multiple regression code. It then displays the following output in the .dta file: stats.idre.ucla.edu/stata/output/regression-analysis-2
– rjkvc
Apr 10 at 17:26






the following link shows how data in Stata are organized: stata.com/features/overview/data-editor . Typing command in the To do file like regress mathsc6 treated dadedr4 momedr4 relig famsize, which is the multiple regression code. It then displays the following output in the .dta file: stats.idre.ucla.edu/stata/output/regression-analysis-2
– rjkvc
Apr 10 at 17:26












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Since STATA seems to be able to provide text output, use the minted or listings packages to display the content of the STATA file in your document, as it could be done for source code.



More specifically, with the listings package, do something like



documentclass{article}
usepackage{listings}

begin{document}
lstinputlisting{yourstatafile.extension}
end{document}


See this website for more information






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f425828%2fimport-stata-15-output-into-latex%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Since STATA seems to be able to provide text output, use the minted or listings packages to display the content of the STATA file in your document, as it could be done for source code.



    More specifically, with the listings package, do something like



    documentclass{article}
    usepackage{listings}

    begin{document}
    lstinputlisting{yourstatafile.extension}
    end{document}


    See this website for more information






    share|improve this answer

























      up vote
      0
      down vote













      Since STATA seems to be able to provide text output, use the minted or listings packages to display the content of the STATA file in your document, as it could be done for source code.



      More specifically, with the listings package, do something like



      documentclass{article}
      usepackage{listings}

      begin{document}
      lstinputlisting{yourstatafile.extension}
      end{document}


      See this website for more information






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Since STATA seems to be able to provide text output, use the minted or listings packages to display the content of the STATA file in your document, as it could be done for source code.



        More specifically, with the listings package, do something like



        documentclass{article}
        usepackage{listings}

        begin{document}
        lstinputlisting{yourstatafile.extension}
        end{document}


        See this website for more information






        share|improve this answer












        Since STATA seems to be able to provide text output, use the minted or listings packages to display the content of the STATA file in your document, as it could be done for source code.



        More specifically, with the listings package, do something like



        documentclass{article}
        usepackage{listings}

        begin{document}
        lstinputlisting{yourstatafile.extension}
        end{document}


        See this website for more information







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 10 at 18:10









        BambOo

        3,0011526




        3,0011526






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f425828%2fimport-stata-15-output-into-latex%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt