Announcement

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

  • Produce an output table using two grouping variable and asdoc

    Good afternoon,

    I'm running the following command:

    by ElementEncodedNum, sort : ttest ElementAverage, by(TechnologistIndicator)

    I want to create an high quality output table for the repeated two-sample ttests. So far I have been using asdoc but struggling to get the results I'm after. Below is output from dataex.

    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input str79 ElementName byte ID_num float(ElementAverage TechnologistIndicator) long ElementEncodedNum
    "Analyzing Data or Information"  6 4.6666665 1 1
    "Analyzing Data or Information" 12  3.333333 1 1
    "Analyzing Data or Information"  7  3.666667 1 1
    "Analyzing Data or Information"  9 2.3333333 1 1
    "Analyzing Data or Information"  1         3 1 1
    "Analyzing Data or Information" 13  2.666667 1 1
    "Analyzing Data or Information" 15  3.666667 1 1
    "Analyzing Data or Information" 14         3 1 1
    "Analyzing Data or Information" 11  3.333333 1 1
    "Analyzing Data or Information"  2       1.4 1 1
    "Analyzing Data or Information"  3         3 1 1
    "Analyzing Data or Information"  8 2.3333333 1 1
    "Analyzing Data or Information"  5         2 1 1
    "Analyzing Data or Information" 10         4 1 1
    "Analyzing Data or Information"  4  3.333333 1 1
    "Analyzing Data or Information" 19  2.666667 2 1
    "Analyzing Data or Information" 18         4 2 1
    "Analyzing Data or Information" 16  3.333333 2 1
    "Analyzing Data or Information" 17  3.333333 2 1
    "Analyzing Data or Information" 20         2 2 1
    end
    label values TechnologistIndicator Technologistlables
    label def Technologistlables 1 "Technologist", modify
    label def Technologistlables 2 "Operational Manager", modify
    label values ElementEncodedNum ElementEncodedNum
    label def ElementEncodedNum 1 "Analyzing Data or Information", modify

    Any help is kindly welcomed!

    With gratitude,
    Elizabeth
Working...
X