From | David Airey <david.airey@vanderbilt.edu> |
To | statalist@hsphsun2.harvard.edu |
Subject | re: st: reshape with j split |
Date | Mon, 15 Dec 2003 10:59:52 -0600 |
I was going from long to wide, to calculate a ratio of experimental conditions, and back to wide to calculate a mixed model on the ratios. What he suggested works nicely:I think you're moving in the right direction for a -reshape- to wide. As for the ANOVA, your original data structure looks better. egen j = concat(s1*), p("_") drop s1* reshape wide s2peak, i(animal) j(j) string Nick n.j.cox@durham.ac.uk
© Copyright 1996–2023 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |