Dear all,
I have daily time series data on minimum and maximum values for a given
variable, such that my dataset has three variables: date, maxvar, minvar.
I'm trying to calculate the overall standard deviation of my observations
for var. So far, I have tried to -reshape- my data from this wide form to a
long form such that the set of variables appears to be: date, min/max, var.
The idea is to then simply use -egen- sd(var), but I haven't been able to
reshape my data.
Does anyone have any advice on how to properly -reshape- for my purposes, or
simply a quicker/better way to calculate the sd of var?
Thanks,
Seth
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/