Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Vl set

    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:
    Code:
    vl create power = (gear_ratio displacement weight)
    I wish to run commands using foreach, original code:
    Code:
    {
    foreach v of varlist myvar1 myvar2 [..] myvarN
    [..]
    }
    and rather than list each var I wish to abbreviate by creating a specialized variable list, i.e.
    Code:
    vl create myvarlist= (myvar1 myvar2 [..] myvarN)
    {
    foreach v of varlist myvarlist
    [..]
    }
    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
Working...
X