[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: generating one measure standard deviation for two time series variables
I can't see how you can calculate a standard deviation
of anything from maximum and minimum alone, at least
without extra assumptions. Given this,
what data structure you have or do not have is immaterial.
Please clarify with an example or further detail is
this is a misunderstanding.
> 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
> 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:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
* For searches and help try: