Hello fellow STATA users
I am using STATA version 15.1
I would like to create a create a specialized variable list for use as independent variables for an estimation command, see page 5 of the link below.
https://www.stata.com/manuals/dvl.pdf
This is possible with the VL commands:
I wish to run commands using foreach, original code:
and rather than list each var I wish to abbreviate by creating a specialized variable list, i.e.
To use the VL suite of commands I may need to upgrade to the latest version of STATA.
Would you be able to suggest please an alternative method possible with STATA 15.1 to create a specialized variable list, or is a version upgrade required?
Thank you.
Harry
I am using STATA version 15.1
I would like to create a create a specialized variable list for use as independent variables for an estimation command, see page 5 of the link below.
https://www.stata.com/manuals/dvl.pdf
This is possible with the VL commands:
Code:
vl create power = (gear_ratio displacement weight)
Code:
{ foreach v of varlist myvar1 myvar2 [..] myvarN [..] }
Code:
vl create myvarlist= (myvar1 myvar2 [..] myvarN) { foreach v of varlist myvarlist [..] }
Would you be able to suggest please an alternative method possible with STATA 15.1 to create a specialized variable list, or is a version upgrade required?
Thank you.
Harry