Announcement

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

  • Add tittle to a Variance ratio test

    Dear all,

    I need to run a Variance Ratio Test for several variables. I am using a for cycle for exporting tables. Lamentably I could not add dependent variable name as a title, and for this reason its difficult recognize what test corrrespond to dependent variable when I join all the test results in a word file.

    Its possible add title with dependent variable?

    do file example:

    clear all
    sysuse auto

    foreach y of varlist price mpg {
    logout, save(tablas/testhomo `y'.txt) replace:sdtest `y' , by(foreign)
    }

    Regards
    Last edited by Rodrigo Badilla; 01 Aug 2018, 14:19.

  • #2
    Try inserting display "`y'" right after you start the loop.

    Comment


    • #3
      Thanks Jay!

      Yes is a good answer but lamentably dont display name in the file saved.

      Comment

      Working...
      X