Hey guys, I'm currently doing a quantil regression with the command qreg variable X, q(1).
My data are many banks = variables with their development of price history per day which looks like this (this is a small extract)
My point is, i have 81 variables (lets call them X1, X2, ..., X81) and i want to regress them all in one command (like: qreg AAREALBANK, q(1)) and not type the command for every single variable.
1) how can I do this ? I looked trough many options like loops but its kinda hard for me to programm it.
2) Afterwarts I want to create a new variable (lets call it VaR1) which is a list of the results from all the 1% Quantil regressions I did. Is this possible ?
The results from qreg looks like this and the red colored value (the rest is unimortant) is the value from all 81 regressions i want to list in a new variable.
I uploaded my stata stata if anyone wants to check further
http://www59.zippyshare.com/v/c48c3NhH/file.html.
Basically I know i could just create everything manuel with excel but I'm searching for a stata solution code.
With kindly regards, Lisa
My data are many banks = variables with their development of price history per day which looks like this (this is a small extract)
My point is, i have 81 variables (lets call them X1, X2, ..., X81) and i want to regress them all in one command (like: qreg AAREALBANK, q(1)) and not type the command for every single variable.
1) how can I do this ? I looked trough many options like loops but its kinda hard for me to programm it.
2) Afterwarts I want to create a new variable (lets call it VaR1) which is a list of the results from all the 1% Quantil regressions I did. Is this possible ?
The results from qreg looks like this and the red colored value (the rest is unimortant) is the value from all 81 regressions i want to list in a new variable.
I uploaded my stata stata if anyone wants to check further
http://www59.zippyshare.com/v/c48c3NhH/file.html.
Basically I know i could just create everything manuel with excel but I'm searching for a stata solution code.
With kindly regards, Lisa

Comment