Suppose I want to get the names of the list of covariates included in a model to display it to users.
This displays them separately, but what I want is to iteratively combine each variable label such that they're alongside each other like "Car Origin", "Price". How might I go about this?
Code:
sysuse auto, clear cls foreach x of var foreign price { local x : variable label `x' di "`x'" }
Comment