Announcement

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

  • Where does my dataset save to in bootstrap, saving( )?

    I'm using the bootstrap command with option to save the dta, but I don't know where it is saving to. And when I try to enter a file path for my disk, Stata will not read the path. Any suggestions?

  • #2
    Your question is kinda vague. Can you please include the exact commands you tried and the exact error(s)? It *should* be a pretty straightforward option, and I think it *should* allow you to specify a path.

    Comment


    • #3
      ELMST616 (please, read FAQ #6 on how to re-register according to the suggested requirements of this forum. Thanks):
      as Ben already pointed out, your query is too broad.
      Anyway, by running the following code, you will get some clues about where Stata saves your bootstrap results file and, probably more interesting, how to upload it for further calculations:
      Code:
      use auto.dta, clear
      ttest price, by(foreign) unequal
      bootstrap (r(mu_1)-r(mu_2)), reps(1000) nodots strata(foreign) saving(C:\Users\user\Desktop\bootstrap_res.dta, every(1) double replace) : ttest price, by(foreign) unequal
      use "C:\Users\user\Desktop\bootstrap_res.dta", clear
      Kind regards,
      Carlo
      (Stata 19.0)

      Comment

      Working...
      X