Announcement

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

  • Stata Slurm Output

    Hi everyone,

    I'm trying to submit my Stata batch job to Slurm. I'm running 8 regression models and use esttab in the end to output the regression result into a csv file.

    However, every time after the Slurm job is completed, I can't see the csv file in the directory. I wonder if anyone have ever used Slurm and know how to output the regression results?

    The code that I'm using currently is

    esttab using 1.csv, scalar("r2_w Overall R2") label keep(lnnonc lncovidnonc lncd2 lncovidcd2 lninter_timing daily_sku_avg_promotion_d1 daily_store_avg_promotion_d daily_price_avg_d1 lnl_purchase_quantity)
    I don't know why the 1.csv file wasn't there after the Slurm is done. Please let me know if you have any thoughts on this. And I can't use log file either because then the results would all stuck together like below:

    Click image for larger version

Name:	5.PNG
Views:	2
Size:	113.0 KB
ID:	1658243

  • #2
    Add the command
    Code:
    pwd
    before the esttab command to be sure the current working directory in which 1.csv will be written is where you think it is.

    Comment


    • #3
      Originally posted by William Lisowski View Post
      Add the command
      Code:
      pwd
      before the esttab command to be sure the current working directory in which 1.csv will be written is where you think it is.
      Hi William,

      Thank you so much for your reply. I found the csv file in the end. It would only show up in the file when I searched for that. But won't automatically appear in the directory. I'll try your method to see if it would work.

      Comment

      Working...
      X