Announcement

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

  • how to write an easy code for this?

    Simply speaking, I have these 6 variables in my data set and want to do:
    Code:
    ttest preaddition == postaddition
    ttest predeletion == postdeletion
    ttest pretotal == posttotal
    I guess I need to use foreach and local.

  • #2
    if that is your total number of tests, a loop won't help much but:
    Code:
    foreach ln in addition deletion total {
       ttest pre`ln' == post`ln'
    }

    Comment


    • #3
      Thank you!

      Comment

      Working...
      X