Announcement

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

  • Bootstrap validation - Multivariable regression model

    Hello

    I would like to perform bootstrap validation of a multivariable regression model, such as:

    Code:
    reg marks_end_year marks_beginning_year $student_characteristics i.discipline if year==1, base vce(robust)
    How can I do this in Stata? I do not know if this has already been asked before. If so, could someone point me to those resources/ references?

    Thanks in advance for your help


  • #2
    It is very simple in Stata:

    Code:
    reg marks_end_year marks_beginning_year $student_characteristics i.discipline if year==1, base vce(bootstrap, reps(500))
    estat bootstrap, bc
    Best wishes

    (Stata 16.1 MP)

    Comment


    • #3
      Thanks very much Felix Bittmann. This worked. May I ask:

      Would you be able to give some details about what is happening in each line of code?

      Many thanks

      Comment


      • #4
        The first line is almost identical. Instead of computing robust standard errors we use bootstrapped ones with 500 replications. The larger this number, the more precise the result, on average. In the second line we compute bias-corrected CIs, which are probably better than the regular normal ones. Details are in the literature or in the stata helpfiles (help bootstrap) or online (https://www.stata.com/features/overv...nd-estimation/).
        Best wishes

        (Stata 16.1 MP)

        Comment


        • #5
          Completely clear, thanks very much Felix Bittmann.

          Comment

          Working...
          X