Stata Blogger?

Are you a Stata blogger? Join the aggregator!

A shorter lookfor command, in five lines of code

One thing that I like about Stata is the possibility to write quick wrappers for commands that get things done. The code below is an example that I wrote to search for variables in less keystrokes than lookfor (which cannot be abbreviated). I also wan…

Continue reading A shorter lookfor command, in five lines of code

Capacity for Love and Prejudice – Stata Simulation

* This is my simple hypothesis (really my own personal prejudice):* the more prejudice someone allows themselves to be the less capacity they have for love.* In this simulation I will attempt to generate a graph which convey’s this idea with a pink equ…

Continue reading Capacity for Love and Prejudice – Stata Simulation

Stata questions at Stack Overflow

Many Stata users know about Statalist, the central mailing-list for Stata matters. But this short post is meant to advertise another great place for questions and answers about Stata code: Stack Overflow, a member of larger family of Q & A websites…

Continue reading Stata questions at Stack Overflow

ML and initial values

* This post explores the setting of initial values with the ML command.* There are several reasons you may be interested in doing this.* 1. You are having difficulty with your data converging and you think that*        you…

Continue reading ML and initial values

Now on GitHub: A Stata bundle for TextMate

One month ago, I mentioned Phil Schumm’s Stata bundle for TextMate. His code has just moved to GitHub. TextMate is a free and open source code and text editor for Mac OS X. This short announcement is to encourage anyone with knowledge of GitHub repositories and TextMate bundles to give him a hand.

P.S. There is more than one copy of the bundle flying around GitHub at the moment, but the one cited in this post is the one being actively developed. Thanks to Phil Schumm for making that point clearer in the README file of his bundle.

Continue reading Now on GitHub: A Stata bundle for TextMate

asim command

* After using the msim command from a previous post, I decided I did not like having many different variables for each simulation run.* So I have recoded an alternative command called asim* This command allow subsequent simulate commands to b…

Continue reading asim command

My not so Brief Stata Formatting Guide

* I write this as a short guide though I do not always stick to it. This post was inspired by a thoughtful discussion on the linkedin Stata-Users group.* The number one rule is: Always, always comment your code!* See my reasons:* http://www.econometric…

Continue reading My not so Brief Stata Formatting Guide

MSimulate Command

CLT is a powerful property* Stata has a wonderfully effective simulate function that allows users to easily simulate data and analysis in a very rapid fashion.* The only drawback is that when you run it, it will replace the data in memory with the simu…

Continue reading MSimulate Command

Now on Stata-bloggers…

Francis Smart has set up Stata-bloggers, a new blog aggregator for Stata users (modeled after R-bloggers). FE will be contributing there, but there’s lots of other goodies worth checking out from more prolific bloggers.Everyone say “Thank you, Fra…

Continue reading Now on Stata-bloggers…

Now on Stata-bloggers…

Francis Smart has set up Stata-bloggers, a new blog aggregator for Stata users (modeled after R-bloggers). FE will be contributing there, but there’s lots of other goodies worth checking out from more prolific bloggers.Everyone say “Thank you, Fra…

Continue reading Now on Stata-bloggers…