Announcement

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

  • Combining the results of t-test and rank-sum test into one table in Word Doc

    I've spent countless hours trying to figure out how to generate the attached table with frustrations.
    I can get the results of the t-test using `r(t)` and `r(p)`.
    I can get the results of the rank-sum test using `r(z)` and `r(p)`.
    I can put these in rows of a Doc table using `asdoc, row(/, `r(t)', `r(z)')`
    I can generate stars for the corresponding p-values in a collection using `collect stars _r_p 0.01 "***" 0.05 "**" 0.1 "*"`
    But I cannot figure out how to get the generated stars for the p-values from the collection and add them to the Doc table.
    In general, is there any way to get the data from a collection to use it programmatically?
    If there is no way, how can I generate the stars and add them to the Doc table?
    Attached Files
Working...
X