Hello everyone,
I am running "nopomatch" command which decomposes the gender pay gap for each company in my dataset and saves it in a separate .dta file. The command is as follows: nopomatch (varlist), outcome(var) by(var) reportby(var) replace filename
There are around 15,000 firms in my dataset and 100,000 individuals.
After running the command for around 2000 companies STATA gives an error:
"I/O error writing .dta file
Usually such I/O errors are caused by the disk or file system being full.
r(693);"
What I tried so far based on the answers to similar posts on this forum:
1. Deleting temporary STATA files manually which increased the number of companies by ~400
2. I checked the memory of the drives - both have around 25GB which I think should be enough
3. I tried to run the command for a smaller sample and fewer variables - in this case, the STATA did not give an error
4. When I run the command for fewer variables it improves the performance only marginally (e.g. by 100 companies)
Anyone has an idea of what could be causing this error and how I could solve it?
Best regards,
Natalie
I am running "nopomatch" command which decomposes the gender pay gap for each company in my dataset and saves it in a separate .dta file. The command is as follows: nopomatch (varlist), outcome(var) by(var) reportby(var) replace filename
There are around 15,000 firms in my dataset and 100,000 individuals.
After running the command for around 2000 companies STATA gives an error:
"I/O error writing .dta file
Usually such I/O errors are caused by the disk or file system being full.
r(693);"
What I tried so far based on the answers to similar posts on this forum:
1. Deleting temporary STATA files manually which increased the number of companies by ~400
2. I checked the memory of the drives - both have around 25GB which I think should be enough
3. I tried to run the command for a smaller sample and fewer variables - in this case, the STATA did not give an error
4. When I run the command for fewer variables it improves the performance only marginally (e.g. by 100 companies)
Anyone has an idea of what could be causing this error and how I could solve it?
Best regards,
Natalie
Comment