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
optimize the function with inequality constraintsI want to optimize the function with inequality constraints in Stata-mata, how should I do it. …
Putdocx and loopingDear list, I have three variables called Sex (coded as male/female), HTN (yes/no) and Cancer (yes/n…
changing numeric string to numeric variable where e5 next to a number means 10^5I have a string variable of the type show below, where 63e5 represents 6300000. How do I change it 6…
Help! How do I use the command collapse? Hi, I have a question about an exercise we did in my econometrics class. I have this database of te…
Interpretation of probit post-estimation testHi Statalisters, I have a question about interpreting post-estimation tests in Stata. Suppose I est…
Subscribe to:
Post Comments (Atom)
0 Response to Dummy variables for table values for percentile
Post a Comment