-h stack-, in conjunction with -preserve-
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jon Schwabish
Sent: Thursday, August 21, 2008 9:19 PM
To: [email protected]
Subject: st: calculating statistics for multiple variables
Does anyone know of a quick way of calculating sample statistics for
multiple variables without reshaping the data? For example, if I have three
variables (columns), how do I calculate means, standard deviations, etc
without reshaping the data into one variable (or, obviously, doing the
calculations by hand)?
For example, calculate the standard deviation of v1 and v2, by treating them
as one variable. Thus, treat
v1 v2
1 2
2 4
3 6
4 8
as
v1
1
2
3
4
2
4
6
8
(instead of calculating it by its parts).
Thanks,
jon
std
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/