Dear Stata users:
I use “contrast” to normalize fixed-effects to grand mean and compute corresponding standard errors after “regress” command. After 13 days, no results come up yet. Would really appreciate if you can help me out. Thank you in advance for your help. Below are more details,
Task: normalize fixed-effects to grand mean and compute corresponding standard errors
Simplified Model: Y=aX+bW+u, where W represents a set of dummies
Data size: 205 MB
Commands:
1. Is there any way to speed up the "contrast" command?
2. felsdvregdm might be faster than contrast. But my understanding is it does not allow for weights. So it will not work here.
3. Should I consider any other commands besides "contrast" or " felsdvregdm"?
4. I have dropped unused data, unnecessary variables, compress the data set, and reduce maximum matrix size and variable size as much as possible. In general, is there any other way to speed up computation?
Version of stata: StataMP 14 (64-bit)
Any thought would be highly appreciated!
Lihan
I use “contrast” to normalize fixed-effects to grand mean and compute corresponding standard errors after “regress” command. After 13 days, no results come up yet. Would really appreciate if you can help me out. Thank you in advance for your help. Below are more details,
Task: normalize fixed-effects to grand mean and compute corresponding standard errors
Simplified Model: Y=aX+bW+u, where W represents a set of dummies
Data size: 205 MB
Commands:
- stage 1: obtain fixed-effects
- codes: regress y X i.W [aw=weights]
- it takes about 2 hours
- there are about 7000 dummies (W)
- stage 2: normalize fixed-effects to grand mean
- codes: parmby "contrast gw.W, post"
- Not results after 13 days
1. Is there any way to speed up the "contrast" command?
2. felsdvregdm might be faster than contrast. But my understanding is it does not allow for weights. So it will not work here.
3. Should I consider any other commands besides "contrast" or " felsdvregdm"?
4. I have dropped unused data, unnecessary variables, compress the data set, and reduce maximum matrix size and variable size as much as possible. In general, is there any other way to speed up computation?
Version of stata: StataMP 14 (64-bit)
Any thought would be highly appreciated!
Lihan
Comment