Hi, I am a senior in college working on an economics thesis.
I am trying to generate a dummy variable which would yield 1 if the observation is in the 95th percentile of the variable and a 0 otherwise. The variable in question is "inflation" and the new variable would be named "extremeinflation". The data is panel, not sure if this would make a difference in the syntax that I need.
I believe I should be using the command pctile in some kind of manner but I am confused on the exact syntax that I should be using.
Anything helps!
Thank you very much.
Related Posts with Generating a 95th percentile indicator variable
Xtabond2 Model SpecificationN: 2500 T: 3 For my purposes: - Endogenous: x1, x2, x3 - Predetermined: x4 - Exogenous: x5 x6 x7 x8…
Non-convergence in IV PoissonDear Statalisters, I am using the IV Poisson model: Code: ivpoisson gmm dependent variable covari…
Label VariablesHello, I have a stata file named "survey.dta" which contains the following labelled data: ident…
range of quartilesDear colleagues, I have created 4 quartiles of a variable (age) that goes form 18 to 89. What is the…
Error after pscore commandDear members, I received this message after running pscore Estimation of the propensity score outc…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a 95th percentile indicator variable
Post a Comment