[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: generating one measure standard deviation for two time series variables
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?
* For searches and help try: