Dear all
I have daily minimum and maximum temperature data from 697 weather stations across 311 districts.
For each district i in month m of year t, I need to aggregate the daily temperature data into two threshold-based heat stress variables which are (1) growing degree-days GDD and (2) stress degree-days or SDD.
The GDD and SDD variables are defined as follows
Array
Where Tlow and Thigh are the maximum and minimum temperature in oC for district i on day d of month m and year t.
Tlow is the lower threshold and takes the value of 10, Thigh is upper threshold and takes the value 30 and Tk takes the value 35
GDDimt is heat accumulated within temperatures Tlow and Thigh and SDDimt is heat accumulated above Tk.
Any suggestions how to implement these specifications?
Related Posts with Generate variables to capture heat stress
separating digits from the numerical variable.Hi All!, I am facing a problem with nsso data while merging four files such as household, demograph…
Flagging just one corresponding positive value for every negative valueHi. My dataset has an id variable, a total amount variable and the corresponding date variable. Ther…
How to write loops that fill a matrix successivelyHello, I've got a question regarding the writing of loops: What I would like to do is to write a lo…
Saving tabulated dummy variable scalars (i.variable)Hello, I'm trying to run an estimation for my honours thesis detailed in this paper (open-source ve…
how to obtain the correct AIC / BIC values after a model using [pw=...]Hi everyone, In general, I use -estat ic- or -fitstata- to obtain the bic & aic values after th…
Subscribe to:
Post Comments (Atom)
0 Response to Generate variables to capture heat stress
Post a Comment