Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: any idea?

From   "Y.R.E. Retamal" <>
Subject   st: any idea?
Date   Sat, 14 Dec 2013 12:08:42 +0000

Dear list

I am very complicated trying to perform an analysis using STATA and I cannot find the way. Maybe you could help me. I want to create some new variables containing the difference between the length of two individuals from different groups:

id     side     length      newvar1       newvar2      newvar3
1      right      x           x-j           x-k          x-l
2      right      y           y-j           y-k          y-l
3      right      z           z-j           z-k          z-l
4      left       j           j-x           j-y          j-z
5      left       k           k-x           k-y          k-z
6      left       l           l-x           l-y          l-z

I do not know if I do explain myself clearly, the individuals are bones (clavicles, for example), so it is possible that some right clavicles pair-match with left clavicles, following the idea that an individual has bone of similar length.

Any help could bring me a light!
Best wishes

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index