We lately had a contest on our Fb web page. To enter, contestants posted their favourite Stata command, characteristic, or only a submit telling us why they love Stata. Contestants then requested their pals, colleagues, and fellow Stata customers to vote for his or her entry by ‘Like’-ing the submit. The prize, a replica of Stata/MP 12 (8-core).
The response was overwhelming! We loved studying all of the the reason why customers love Stata a lot, we wished to share them with you.
The competition query was:
Do you have got a favourite command or characteristic in Stata? What a couple of memorable expertise when utilizing the software program? Publish your favourite command, characteristic, or expertise within the feedback part of this submit. Then, get your pals to “like” your remark. The individual with essentially the most “likes” by March 13, 2012, wins. The winner will obtain a single-user copy of Stata/MP8 12 with PDF documentation.
We had many submissions with a number of “likes”. The profitable submissions are:
| Rodrigo Briceno Some of the outstanding experiences with Stata was after I realized to make use of loops. Making repetitive procedures in so quick quantities of time is de facto superb! I LIKE STATA! |
|
| Juan Jose Salcedo My Favourite STATA command is by far COLLAPSE! Getting descriptive statistics couldn’t be any simpler! |
|
| Tymon Sloczynski My favorite command is ‘oaxaca’, a user-written command (by Ben Jann from Zurich) which can be utilized to hold out the so-called Oaxaca-Blinder decomposition. I typically use it in my analysis and it saves plenty of time – which simply makes it favorite! |
Full entry listing
Mburu James inlist()
February 21 at 11:28am · Like · 2.
Robin Kim exit
February 21 at 11:28am · Like · 5.
Maximiliano Exequiel show !! haha.. it’s neccesary once you don’t have a calculator shut otherwise you don’t wish to open the Home windows’ calculator 🙂
February 21 at 11:31am · Like · 3.
Felipe Rojas assist
February 21 at 11:31am · Like · 2.
Reynaldo Rojo Mendoza usespss. So lengthy, Stat/Switch!
February 21 at 11:32am · Like · 5.
Robert Birkelbach I beloved the set reminiscence command. I miss it in Stata 12.
🙁
February 21 at 11:33am · Like · 32.
Matt Incantalupo margins
February 21 at 11:33am · Like · 2.
Rodrigo Aranda di in inexperienced”¡¡VIV” in white”A ST” in purple”ATA!!”
February 21 at 11:35am · Like · 9.
Emily Ryder 3 phrases: SET MORE OFF. simplistic, i do know, however let’s not faux it isn’t extraordinarily helpful when operating tabulations with tons and tons of information!
February 21 at 11:39am · Like · 3.
Mike Gruszczynski foreach var of varlist x y z {
do one thing
}
February 21 at 11:39am · Like · 4.
Peter Tennant Edit > Preferences > Common preferences > Consequence colours > Colour Scheme: Basic 🙂
February 21 at 11:43am · Like · 6.
Francisco Javier Arceo First order stochastic dominance? How do you discover out!? kdensity y, addplot( kdensity x)
February 21 at 11:48am · Like · 12.
Julian Sagebiel my favourite command is ” rename ” as a result of it is extremely easy, efficient, environment friendly , no ready time and you’ll instantly observe the end result of what you probably did. particularly together with protect and restore one can have plenty of enjoyable with it
February 21 at 11:48am · Like · 3.
Tihana Skrinjaric my favorite command is arch, as a result of i examine and estimate arch and garch fashions! 🙂
February 21 at 11:48am · Like · 36.
Jens Rommel world
February 21 at 11:52am · Like · 4.
Sarah Bana Favourite Stata Perform: save
February 21 at 11:56am · Like · 2.
Sezer Alcan my favourite command is “log” as a result of it allows me to log everthing I kind in a file
February 21 at 11:59am · Like · 42.
Carrie Daymont renpfix, to alter the primary elements of all variable names that begin with the identical stub. A type of stuff you wish to do however don’t suppose there might be a command for…however there’s!!!
February 21 at 12:02pm · Like · 2.
Brayan Rojas My favourite command is cond()…
February 21 at 12:10pm · Like · 3.
Rafael Gralla my favourite command is assist 😉
February 21 at 12:13pm · Like · 2.
Bryce Mason Whomever made the “reshape” command must be given a medal. That command has saved me and my purchasers a boatload of money and time.
February 21 at 12:15pm · Like · 70.
Rodrigo Briceño Some of the outstanding experiences with Stata was after I realized to make use of loops. Making repetitive procedures in so quick quantities of time is de facto superb! I LIKE STATA!
February 21 at 12:16pm · Like · 2223.
Gabi Huiber My favourite characteristic is just not a command, however an possibility: rclass. I normally outline a program, setLocals, on the prime of the grasp do-file. Right here I outline as native macros all the things that I want to make use of in a couple of place: file paths, variable lists, title lists, constants, no matter. I name this program in every single place I want any of these items. After any given name, I solely reconstitute the actual r() outcomes that I want in that place. And if I increase the performance of my do-file and I want so as to add one other factor that might be utilized in a couple of place, I do know I solely want so as to add it within the definition of setLocals as a macro to be returned later. That’s the reason rclass is my buddy.
February 21 at 12:26pm · Like · 1.
Received-ho Park All of the single-stroke instructions: d(escribe), e(xit), h(elp), m(ata), n(ote), and q(uery).
February 21 at 12:42pm · Like.
Francisco Javier Arceo “Xi:” can be fairly superior when you have got an unlimited set of dummies.
February 21 at 12:55pm · Like · 2.
Ryan Johnson _n and _N. Earlier than Stata, I used to be misplaced, however now I’m discovered. Database-table transformation is now little one’s play the place it as soon as was seemingly unimaginable.
February 21 at 12:56pm · Like · 5.
Tymon Sloczynski My favorite command is ‘oaxaca’, a user-written command (by Ben Jann from Zurich) which can be utilized to hold out the so-called Oaxaca-Blinder decomposition. I typically use it in my analysis and it saves plenty of time – which simply makes it favorite!
February 21 at 12:59pm · Like · 140.
Luca Campanelli I’m a multilevel mixed-effects individual and, for exploratory goal, it’s typically necessary to inspecting the OLS regressions for every Degree 2 unit… properly, simply run dozens of regressions, copy the coefficients of every regression, paste them in an excel file and also you’re executed. Then, at some point, the sunshine, the command -statsby-. My life modified…
February 21 at 2:06pm · Like · 8.
Robert Duval H Margins is by far my favourite… A real time saver!
February 21 at 2:13pm · Like · 12.
Pankaj Gaur tab is my favourite command
February 21 at 2:21pm · Like.
Cristian Gil-Sánchez the most effective command ever to be taught stata is: db
February 21 at 2:31pm · Like · 6.
Dmitriy Poznyak Esttab and estout save ridiculous quantity of my analysis
time
February 21 at 2:31pm · Like.
Sang-Min Park my funniest expertise was how the assistance file for issue variables defined interactions: “group#intercourse … identical i.group#i.intercourse”!
February 21 at 2:35pm · Like · 4.
Frank MacCrory My favourite command in Stat is ‘program’, in truth Stata’s programming functionality is why I choose it over different statistics packages. Want to increase what a Stata command does? The supply code for many of them is true there so that you can use as a place to begin.
February 21 at 2:55pm · Like · 3.
Juan Jose Salcedo ?…..
…..
My Favourite STATA command is by far COLLAPSE! Getting descriptive statistics couldn’t be any simpler!
…..
…..
February 21 at 3:06pm · Like · 1462.
Dimitriy V. Masterov Wondeing when Stata will lastly add the “gen dissertation, strong” command.
February 21 at 3:25pm · Like · 21.
Norbert Schulz constraint
February 21 at 4:38pm · Like · 1.
Luca Bossi My favourite command is “exit”.February 21 at 6:10pm · Like.
Stephen Merino Stata’s “reshape” command turned my selfish community information into candy, chic, dyadic information that allowed me to investigate relationship traits related to social help provision. And a shout-out to Rebekah Younger for all of her assist!! I like you, Stata.
February 21 at 7:43pm · Like · 1.
Trey Marchbanks love forval x = 1/99
February 21 at 8:55pm · Like.
Jose Martinez Outreg2. Having tables and tables to format, doesn’t get higher than this.
February 22 at 9:43am · Like · 1.
Habtamu Tilahun Kassahun I like the Change listing (CD) command!!!
February 22 at 12:12pm · Like · 1.
Austin Nichols Favourite command? mata
February 22 at 3:31pm · Like · 2.
Daniel Marcelino My favourite command is ‘egen’, its is without doubt one of the strongest although merely command of Stata. February 22 at 5:05pm · Like · 3.
Stas Kolenikov -capture-, -assert- and -confirm-, in numerous combos. You by no means know what sort of crappy information your pals, colleagues and unbiased finish customers of your packages will provide.
February 22 at 6:20pm · Like · 3.
Billy Bass Apart from seconding what Stas already mentioned, I’m a giant fan of the brand new SEM capabilities and the Stata Consumer-Group as an entire. Not like another software program platforms, StataCorp and the user-community are in all probability the best asset to this system.
February 22 at 6:30pm · Like · 6.
Billy Schwartz foreach var of varlist * {} rhymes properly.
February 22 at 7:57pm · Like.
Chamara Anuranga My favorite command is levelsof. It’s going to retailer content material of the variable in r(varlist). It make life simpler for loop command. instance:
sysuse auto.dta,clear
levelsof rep78,native(listing)
foreach merchandise in `listing’ {
dis “`merchandise’”
sum worth if rep78==`merchandise’
}
I’ve used this command to attract graphs for WDI information for every nation.
February 23 at 12:16am · Like · 27.
Until Da Tilt Ittermann fracpoly
February 23 at 7:33am · Like · 1.
Adrian Alejandro Perez Grandes mi comando favorito es el arco, porque yo estudio y el arco y la estimación de modelos GARCH
February 23 at 1:56pm · Like · 1.
Oliver Jones Have you ever ever acquired a brand new information set with no documentation and even worse BAD documentation? Simply use codebook and the solar is shining once more! 🙂
February 24 at 4:40am · Like · 14.
Marilyn Santana Reyes my favourite command is assist 😉
February 24 at 8:14am · Like · 3.
Leonardo Sanchez My favourite command is Exit. It means I’m able to go house
February 24 at 9:34am · Like · 2.
Maria Gabriela Garcia Andrade ….. My Favourite STATA command is by far COLLAPSE! Getting descriptive statistics couldn’t be any simpler! …..
February 24 at 10:07pm · Like · 2.
Anayatullah Niyazi my favarate command in stata package deal is for producing new variable “gen new variable title complete(previous variable) by time” and for panel information regression “xtreg dependent variable unbiased variable , fe or re”.
February 25 at 11:39am · Like.
Victor Fernandez my favorites instructions in stata are var and predict. I like attending to know the relationships between the variables after which predict how they gonna behave sooner or later. Thanks for letting me win the copy of stata!
February 25 at 8:38pm · Like · 4.
Vane Ramirez Lopez Exc
February 26 at 1:12am · Like · 1.
Zaira Araujo Jones exce =)
February 26 at 5:47am · Like · 2.
Cecil Moitland Rodriguez the merge command is improbable!
February 26 at 7:22pm · Like · 4.
Jose Francisco Pacheco-Jimenez You simply want one command: HELP! And that makes STATA the most effective of all.
February 26 at 7:23pm · Like · 4.
Reymond Ssr regress rocks
February 26 at 7:25pm · Like · 1.
David Mora G is without doubt one of the greatest instructions please vote for me..
February 26 at 7:26pm · Like · 1.
Alejandra Hernández tab is the most effective command of Stata…
February 26 at 7:30pm · Like · 1.
David Lang my favourite command is internet search, because it permits me entry to all the brand new procedures.
February 27 at 1:26pm · Like · 4.
Jason Gainous My favourite command is whichever one I’ve to lookup subsequent on the Google.
February 27 at 11:10pm · Like · 44.
Víctor Hugo Pérez My favourite command? Uhhh, that’s a tough one… I’ll guess it’s foreach… It’s the extra versatile and time-saving command I’ve ever used. It’s straightforward to make use of and allows you to keep away from numerous boring programming. February 28 at 2:38pm · Like · 27.
David Elliott When it’s a must to do some repetitive heavy lifting there’s nothing higher than:
levelsof x, native(xlevels) foreach degree of native xlevels { …`degree’…
}
February 28 at 2:42pm · Like · 3.
Niki Yang My favourite command is “DIsplay 1+1” which is a good substitute for a pocket calculator! For all the things else, I take advantage of Mata!
February 28 at 2:53pm · Like · 4.
Tobin Hanspal estout!
February 28 at 2:55pm · Like · 1.
Adrian Mander Exit,clear. It means it’s house time
February 28 at 4:34pm · Like · 3.
Tomek Godlewski Management alt delete.
February 28 at 6:40pm · Like · 2.
Alberto Dorantes My favourite command: for information administration: collapse (way more environment friendly than PivotTables of Excel), and for information evaluation the pre-command: rolling, which saves tons of programming strains
February 28 at 6:48pm · Like · 3.
Denier Duarte Alvarado Exit clear..
February 28 at 9:51pm · Like · 1.
Hiroshi Kameyama now utilizing many instances, “arfima”, what occur subsequent?
February 29 at 1:48am · Like.
Antoinette Post-mortem My Favourite STATA command is collapse.
February 29 at 10:47am · Like · 91.
Korin Esquivel listo !
February 29 at 2:34pm · Like · 2.
Cirito Moran Contreras dame tu pin x interno
February 29 at 3:25pm · Like · 1.
Stata person foreach and forvalus are each nice conmands,i really like them
February 29 at 4:59pm · Like · 1.
Marcelo Lopez Leon DEMACIADAS XUERTE
March 1 at 4:04pm · Like · 1.
Aguirrense Rafiko De Corazon Zambrano ps xq tanto ingles
March 1 at 7:07pm · Like · 2.
Ines Bouassida My favourite command is “merge”
March 5 at 12:43pm · Like · 38.
Chase Coleman I feel my favo makes creating binary variables fast and easy
March 5 at 11:37pm · Like · 18.
Juliana Camacho Sánchez my favourite command is assist
March 6 at 12:38pm · Like · 5.
Vicki Stagg My favourite Stata information manipulation software combines using _n and subscripting.The next do-file might be utilized to affected person information over numerous numbers of visits. Enter information would come with affected person ids, go to dates and systolic BP measurements, for instance. A affected person sequence quantity and baseline (from the primary go to) systolic BP worth are generated and utilized to every report. type patientid visitdt
bysort patientid: gen seq_visit=_n
bysort patientid: gen tot_visit=_N
*tabulate the variety of visits
tab tot_visit if seq_visit==tot_visit
*put together to generate affected person sequence quantity and baseline sys bp
type seq_visit patientid
gen patientn=_n if seq_visit==1
gen base_bpsys = bp_sys if seq_visit==1
type patientid seq_visit
bysort patientid: change patientn=patientn[1]
bysort patientid: change base_bpsys= base_bpsys[1]
March 9 at 4:29am · Like · 7.
Christopher Salazar me gusta propio viejo
Saturday at 2:16pm · Like.
Liu Pluas Diaz propio pepa
Saturday at 3:50pm · Like.
Mariel García M I see two individuals who introduced over a thousand likes every to this standing replace. I hope the corporate will admire that and provides them each a free copy. Statisticians don’t get that a lot help on a regular basis!
Sunday at 11:45pm · Like · 1.
Alexander A. Stäubert I bought this reply after operating the GLLAMM command: “can’t get appropriate log-likelihood: -39386.119 must be -39386.664. one thing went unsuitable in comprob3”. Normally Stata may be very exact when stating an error… normally.
Yesterday at 11:59am · Like.
Rajesh Tharyan my favorite command is ! which lets you ship instructions to your working system or to enter your working system for interactive use, !!..:)
Yesterday at 12:01pm · Like · 1.
Nguyen Ngoc Quang My favourite command is subinstr to transform the unicode font
Yesterday at 12:04pm · Like · 1.
Juan Pablo Ocampo Years in the past whereas doing an econometrics homework I had plenty of hassle with a dummy entice. Immediately a buddy prompt to make use of “tetrachoric” to verify correlation between dummies. I’m in love with that command since, additionally it’s enjoyable to say it…tetrachoric
23 hours in the past · Like · 1.
Gülsün Akin It will be nice if these feedback might be saved someplace.. I’ve realized a number of issues to make life simpler by searching some, and wish to learn all sooner or later.
23 hours in the past · Not like · 1.
Andrew Dyck My favorite command is -reshape-. This is a gigantic ache in most statistical frameworks, however sooo straightforward with STATA. Sustain the good work!
20 hours in the past · Like · 3.
Ronald Moreano Que El Señor Dios Jehova te bendiga, guie tu camino e ilumine tu vida por siempre.
14 hours in the past · Like · 1.
Minh Nguyen My favorite command is egen with bysort.
12 hours in the past · Like.
