Thank you Prof. David Eugene Booth for your prompt response.
I want to use a quantile regression based on three-group index (low, medium, and high) to assess how variable (X) impacted variable (Y) in each period using ARIMA. In Stata, the commands used for ARIMA and quantile regression separately are known, but the issue is how to perform ARIMA for each period of the three-group index as mentioned above.
The command "tin" is suitable for sub-samples, for example differnt years, etc. In my case, how to add the variable (uncertainty periods) that should be divided into groups (low, medium, high) to the equation using "tin" command?. I thinks there is another command that should be used.