Announcement

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

  • Stacking Multiple Variables

    Hi all,

    I have the following problem to solve:

    I have three variables, say A, B and C. A and B are the same kind of variable (GPA) and C tells you if they are treated (C=1) or untreated (C=0). I.e. A is the GPA of treated students, B is the GPA of untreated students.

    For the Wilcoxon median test, I need to have one variable D that will be categorized according to C so that I can use:

    Code:
    ranksum D, by (C)
    My question is, how can I stack the two variables A and B into D while keeping for each observation the information given in C, i.e. the treatment?

    Many thanks for your help.

    Best,
    Peter

  • #2
    This has been solved, thank you!

    Comment

    Working...
    X