Hey guys,
I want to create one dummy variable which assigns a value of 1 for values above 90 percentile cites for each journal.
What I mean is that I want a dummy variable = ( if journal = "A", cites >107 AND if journal = "B", cites >92 AND if journal = "C", cites >55 AND if journal = "D", cites >51 AND if journal = "E", cites >106)
How do I do it?
journal N(cites) p90(cites)
----
A 152 107
B 227 92
C 181 55
D 156 51
E 144 106
----
Thanks!
Related Posts with Dummy variables for table values for percentile
PCA with weights?Dear All, I was wondering if weights should be used with the PCA command when constructing an index …
How to recode a trinary variable into a binaryHello. I'm new to Stata, and I have a quick question. I have a variable "size" in my data base : 1 i…
Renaming VariablesI am using STATA 15. I have a large data set with multiple columns and rows. I am interested in two …
Two-part modeling: combination of LCA and LPAHi Statalists, I was trying to do a two-part modeling for my dataset, in which observed vars are ze…
[Help] Marginal effect on StataHi. My question is from Stata (15.1), but also requires some statistical knowledge, which is why I a…
Subscribe to:
Post Comments (Atom)
0 Response to Dummy variables for table values for percentile
Post a Comment