Announcement

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

  • Bootstrap

    Hi everyone,

    I need some help with understanding why STATA doesn't let me use the command: bootstrap_b.
    It writes: unrecognized command: bootstrap_b.
    What can I do?

    Thanks in advanced.
    Gal.

  • #2
    there is no such Stata command (at least, not an official one); please tell us why you think there is and maybe someone can help

    Comment


    • #3
      Gal:
      welcome to this forum.
      Neither -help bootstrap_b-, nor -search bootstrap_b-,give back any entries.
      What's your problem?
      Kind regards,
      Carlo
      (Stata 19.0)

      Comment


      • #4
        Hi,

        First, thanks for your responses and for the welcoming.

        The problem is that I'm trying to replicate a specific article and the author was using this command. Yet, as you both said there is no such thing, according to your knowledge.
        Is there any chance that the command should be writing differently?

        I'm not sure if it will be helpful but the author uses a multilevel model (MLM).

        Thanks again for trying to help me.
        Gal.

        Comment


        • #5
          Gal:
          are you sure that the authors used Stata?
          In addition, as reminded by the FAQ, please provide full reference of any contribution you quote or refer to (aka: "May the source be with you!")
          Admittedly, interested listers cannot spot the article you mention due to the lack of its reference.
          Kind regards,
          Carlo
          (Stata 19.0)

          Comment


          • #6
            My guess would be that the author had a self-written program called bootstrap_b written for her/his particular situation. If you could describe what the author's program did, we might be able to figure out how to make Stata do it in your situation. An exact citation to the article might also help, as someone here might be able to help you decipher what the program was doing.

            Comment


            • #7
              Hi everyone,
              Thanks again for trying to solve my problem. I really appreciate it.

              I'm adding the reference for the article's replication data (by Harvard dataverse): https://dataverse.harvard.edu/datase...910/DVN/VT4KJA

              The command is in the do file called: ForeignPresence&ETCs.do.txt (under model 1-4).
              In the "readme" text he wrote that he was using Stata for most of the analysis (the specific command of bootstrap used also on Stata).

              I hope that now you will be able to help me.

              Regards,
              Gal.

              Comment


              • #8
                The problem is quite simple to solve: There is a space between "bootstrap" and "_b" which you left out
                Code:
                bootstrap _b, strata(prov_ind) rep(1000) seed(977060) reject(e(converged)==0):

                Comment


                • #9
                  Hi Sven-Kristjan, thanks for the suggestion but I already tried it before I reached out here.
                  Yet, I think I found out the problem.
                  I was using at first an older version (13) of Stata. Now I tried the command with the 15th version and it worked.
                  Still not sure what is the difference between the command without _b and the second.

                  Gal.

                  Comment

                  Working...
                  X