Hi all,
I am working with a colleague on a paper. We have a basic OLS regression, but want to check our results with a quantile regression at the median. We have a very large dataset with about 4 million observations (IPUMS ACS 5-Year Estimates) and use state puma and occupation as controls. I note this because there are about 4,000 state pumas and about 800 different occupations in our dataset. So, it will take a while to run. However, we are using a pretty fast desktop PC. We are also trying to run a three-way interaction of age with age with our some college variable, so that complicates things.
Our first thought was to use qreg, but it took like a week and then threw up the following error: invalid numlist has too many errors. So we switched to laplacereg. This ran for a while, but then threw up an error saying that factor notion was not allowed after about two days. We then used the "xi:" prefix but still had the same problem. This was a bit puzzling because the help file has the below example using factor notation.
Any one have any ideas on the best way to run this quantile regression at the median? Here is our code for each attempt at qreg and laplacereg.
qreg
laplacereg
Thanks. Best,
Kasey
I am working with a colleague on a paper. We have a basic OLS regression, but want to check our results with a quantile regression at the median. We have a very large dataset with about 4 million observations (IPUMS ACS 5-Year Estimates) and use state puma and occupation as controls. I note this because there are about 4,000 state pumas and about 800 different occupations in our dataset. So, it will take a while to run. However, we are using a pretty fast desktop PC. We are also trying to run a three-way interaction of age with age with our some college variable, so that complicates things.
Our first thought was to use qreg, but it took like a week and then threw up the following error: invalid numlist has too many errors. So we switched to laplacereg. This ran for a while, but then threw up an error saying that factor notion was not allowed after about two days. We then used the "xi:" prefix but still had the same problem. This was a bit puzzling because the help file has the below example using factor notation.
Code:
xi: laplacereg studytime i.drug
qreg
Code:
qreg wageslf c.age##c.age##i.somecoll2 i.multyear i.statepuma, q(50)
Code:
xi: laplacereg wageslf c.age##c.age##i.somecoll2 i.multyear i.statepuma, q(50)
Thanks. Best,
Kasey
Comment