Articles on this Page
- 04/19/11--07:29: _Data visualization,...
- 05/16/11--10:32: _Supply chain magic
- 06/25/11--14:24: _Building a repeater...
- 07/01/11--12:12: _All the SAS you need
- 08/22/11--12:16: _Factors in Stata and R
- 08/25/11--00:25: _How I rooted my Noo...
- 09/14/11--07:30: _Stata 12 with MacVim
- 10/07/11--08:02: _From Stata to Googl...
- 10/14/11--20:41: _On work
- 11/19/11--08:23: _Mapping Durham
- 01/26/12--20:11: _How many zeroes in ...
- 02/08/12--10:09: _A quick tip for usi...
- 02/13/12--17:29: _Fighting the R grap...
- 02/27/12--08:35: _Stata 12 with MacVi...
- 03/03/12--07:39: _Human rights stats,...
- 03/04/12--07:44: _Human rights stats,...
- 03/05/12--07:55: _Human right stats, ...
- 03/18/12--08:02: _Turn a date into St...
- 03/20/12--10:00: _Stata for stocks
- 05/22/12--12:06: _Do-file rules, revi...
- 04/19/11--07:29: Data visualization, Budapest Ethnography Museum
- 05/16/11--10:32: Supply chain magic
- 06/25/11--14:24: Building a repeater bridge
- 07/01/11--12:12: All the SAS you need
- 08/22/11--12:16: Factors in Stata and R
- 08/25/11--00:25: How I rooted my Nook Color
- 09/14/11--07:30: Stata 12 with MacVim
- 10/07/11--08:02: From Stata to Google Maps
- 10/14/11--20:41: On work
- 11/19/11--08:23: Mapping Durham
- 01/26/12--20:11: How many zeroes in that Poisson?
- 02/08/12--10:09: A quick tip for using Stata in interactive mode
- 02/13/12--17:29: Fighting the R graphics
- 02/27/12--08:35: Stata 12 with MacVim, updated
- 03/03/12--07:39: Human rights stats, part 1
- 03/04/12--07:44: Human rights stats, part 2
- 03/05/12--07:55: Human right stats, one last thing
- 03/18/12--08:02: Turn a date into Stata format quickly
- 03/20/12--10:00: Stata for stocks
- 05/22/12--12:06: Do-file rules, revisited
Big circles designate villages that sent goods to the market. Small circles designate other villages. Double lines mean postal roads, single lines mean other public roads. The symbols on the list mean (in this order): cattle, pigs, poultry, grains (autumn, spring), bread, fruit, melons, cabbage, root vegetables, butter, wood, hay. If anybody reading this ever [...]
I turned a 7-year old Motorola WR850G (v3) 802.11b/g router into a repeater for a dual-channel Netgear WNDR3700 that I bought a few weeks ago. Dual-channel means that the thing works over both 2.4GHz and 5GHz. More on that later. The job took some googling, but flashing an old router and installing third-party firmware turned [...]
You may find yourself on a job where people use SAS, but you would rather use Stata. If you have both SAS and Stata installed on your computer, you can simply put Dan Blanchette's usesas to work. That's all you need. If you don't have SAS installed, make your colleagues' lives easier and give them [...]
The quick version of this post goes like this: -- # in Stata is : in R -- ## in Stata is * in R. The long version is that both Stata and R handle very nicely factor variables in regression models. If you want a full-factorial interaction between a factor variable x1 and a [...]
The job takes one microSD card and two files that you download from the Internet: a CWR .img file, that you use to make the microSD card bootable; and a ManualNooter .zip file, which you do not unzip; you simply copy it onto your bootable microSD. You will google this, and instructions of different vintage [...]
I used to run Stata 10 with Vim on Windows. Now I run Stata 12 with MacVim. In Windows, there is a nice way to integrate Stata and Vim based on the work of Friedrich Huebler and Dimitriy Masterov. A fairly straightforward combination of bash scripts, Vim functions and Applescript calls can achieve the same [...]
At the Stata command line, type "findit geocode". You will turn up a command that matches physical addresses with latitude and longitude coordinates using the Google Maps API. Then if you type "findit writekml" you will turn up my first contribution to the SSC: a command that writes a KML file using latitude and longitude [...]
Last week Ezra Klein wrote this. His main point, the way I read it, is that the Obama stimulus was insufficient. But he makes a few other claims, one of which is that the government should have stopped firing people and it should have even hired more, even in totally bogus make-work jobs -- one assistant [...]
Today, Kirstin wanted to make a grocery trip to the Whole Foods at Bull City Market, then take Kate to the nearest playground. That seems to be Oval Drive Park, but it won't be obvious from querying the Durham Park Locator . No worries. The Durham Park Locator gives you a pretty nice table with all [...]
I have a data set, and some of the variables there are counts of a given event. Four count outcomes, the easiest thing to do is a Poisson regression, but before you do that, it's worth asking if what you see there really is close enough to a Poisson process. You could check whether the [...]
You don't always want to start a do-file in the editor for every small thing, though I usually do, and then trash it if I don't need it. So, my default stance is that I want to preserve work for later. Yours may be the opposite. If so, one option is to type in the [...]
If you've ever seen the Error in plot.new(): figure margins too large message before, this is the best overview of the problem that I could find anywhere. There can be a lot of knobs to turn when it comes to graphics, no matter what statistical programming environment you use. In R, typing par() at the [...]
A while back I showed how to get Stata 12 to work with MacVim. This is to let you know about a bug fix. I posted the details on the Statalist just now. If you're reading this blog and you're not also a Statalist subscriber, you may want to change that.
I follow @simplystats on Twitter, and on March 1 they had a post that linked to an article in Foreign Policy about a guy who has the coolest job in applied stats. He works here. The original piece described a quick algorithm that you can use to estimate the number of human rights violations using [...]
My previous post promised some simulations. To refresh your memory, I am trying to see how reliably Multiple Systems Estimation, as described here, can guess the true number of fish in a pond. The density plot below tells the story. The true number of fish is 150,000. Each catch limit lets you make a best [...]
The R code in my previous post could also produce the picture below. The implication is this: A small sample is still bad news. It is biased toward underestimating the population. There's nothing you can do about that. The larger the sample, the better. How large a sample do you need? You might get lucky [...]
There's a little program that's shown up more than once now in my housekeeping do-files, so it may be useful enough for a blog post, but it doesn't quite warrant a spot in c(sysdir_personal) as a stand-alone ado-file. Here: // turn this date to Stata format // if it's not that way already capture prog [...]
The people at StataCorp are on Facebook, and the other day they linked to this blog post by Paul Clist about checking on a stock you might own through clever use of the stockquote Stata command. Last year I bought some Netflix stock when it fell to $77 after the Qwikster fail. I agreed with [...]
Back in 2009 I wrote this post, detailing what at the time I thought would be a good way to write do-files. Some of the ideas there have stood the test of time. Others haven't. The changes are driven by Stata's evolution, by new things I've learned and by ways that my work changed. This [...]