Announcement

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

  • descriptive statistics - cumulative regression

    Hello my friends,

    I am new to Stata and need to do an empirical research for my bachelor thesis.
    I will be doing linear regressions for descriptive statistics. I would like to make them cumulative.
    This means that after each regression another variable is added, and then put this into a descriptive format.

    reg y var1
    reg y var1 ib(freq).var2
    ...

    I have some variables and would like to automate this process so that I can make more flexible adjustments to my analysis.
    For this I would work with locals. I have some numeric variables and categorical variables.
    I would be very happy if someone has ideas or approaches to build this into a loop and automate it.


  • #2
    see help nestreg
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Thank you, that helped me a lot. Do you have any tips on how I can save the results of the individual blocks so that I can format them into a table later?

      Comment


      • #4
        Code:
        clear all
        webuse census4
        nestreg , store(model): regress brate (medage) (c.medage#c.medage) (i.region)
        etable , estimates(model1 model2 model3)
        ---------------------------------
        Maarten L. Buis
        University of Konstanz
        Department of history and sociology
        box 40
        78457 Konstanz
        Germany
        http://www.maartenbuis.nl
        ---------------------------------

        Comment


        • #5
          great thank you you were a great help!!!

          Comment

          Working...
          X