Hello everybody,
I am trying to create a dummy variable that is equal to one of current rainfall in a given district (avgrf) is one standard deviation below or above the historical mean of rainfall in that district (lravgrf). I also want to create a dummy equal to one if the current rainfall falls within the range of one standard deviation.
Does anyone have any suggestions on how to do that?
Best, Jérôme
Related Posts with Creating dummy variable equal to one if current mean is one standard deviation above/below the historical mean
Imputation methodHello, dear Stata community, I have questions related to imputation and winsorization methods that …
Creating polynomial expansion of a variableDear Statalist, What I want to do is to create a polynomial expansion of a certain degree of two va…
Select one observation within group with complex criteriaHello, I have to select only one document per each firmid (sometimes I have one document per firm id…
Not achieving convergence in Latent Class AnalysisHi all, I'm exploring an LCA model with a household survey we've ran. This is looking at the activi…
Calculating averages (industry+year) based on sub sample and then applying them to all firmsHi, I am still quite new to Stata (using Stata 16) and hope to find help here as I do not know how t…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable equal to one if current mean is one standard deviation above/below the historical mean
Post a Comment