Good Evening,

I am attempting to pass a varlist into a local macro as follows:

Code:
local predictors `"varlist"'
When I use this in a fixed-effects panel regression everything works fine as follows:
Code:
xtreg dependent `predictors', fe
However I would like to use this with the xtqreg package in Stata 16.1, unfortunately, I'm issued with the following error:
Code:
xtqreg dependent `predictors', quantile(0.1(0.1)0.9) 
too few variables specified
I'm not entirely sure if this is an issue with xtqreg or if I am using the macro incorrectly since I'm sure I have specified enough variables.

I'm interested in doing this as I have a lot of regressions to run using the same specification and changing the variables for each one manually is quite tedious.