Stata Blogger?

Are you a Stata blogger? Join the aggregator!

A Prime Sieve for Stata As Well

* I feel like I have been neglecting Stata since most of my posts have been in R.* But like speaking different languages it takes effort to switch mental states and programming styles from Stata to R.* For really, there is a great deal of differences b…

Continue reading A Prime Sieve for Stata As Well

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

Return Text

do file* The following program will create a tiny program that will send to the display input text.cap program drop rtprogram define rt    local caller : di _caller()    * This will parse the `0′ text so that there is a before the c…

Continue reading Return Text

Stata Syntax Command’s Syntax

do file* When programming Stata “programs” (loosely known as functions in R) it is often times very useful to use the “syntax” command to parse arguments.* This command takes the arguments input into the command and uses them to control the function of…

Continue reading Stata Syntax Command’s Syntax

Bootstrapping Gini

Income inequality in the Philippines, as measured by the Gini coefficient, declined from 46.05 to 44.84 between 2003 and 2009.[1] Is the observed difference in the the Gini coefficient a real reduction in inequality in income distribution or is it only due to sampling variations? A friend asked me a question related to this weeks […]

Continue reading Bootstrapping Gini