Posts Tagged ‘ Stata ’

Performance difference between Stata and R

October 8, 2011
By
Performance difference between Stata and R

With respect to multinomial logit model, the performance difference between the two packages are quite large, based on this post.

Read more »

GEE using Stata vs. R

October 4, 2011
By
GEE using Stata vs. R

I am running GEE logistic regression model for my fetal loss paper. As usual, I compare results between Stata and R and make sure they are consistent. To my surprise, the models assuming independent correlation structure give similar results but the mo...

Read more »

Google maps and travel times

April 1, 2011
By
Google maps and travel times

Travel times and trip distances are at the core of urban economics. Many models of competition, housing markets, etc., rely on travel times or distances to explain the variance in economic outcomes. Determining travel times, especially non free-flow tr...

Read more »

Regular expressions, an example

February 3, 2011
By
Regular expressions, an example

Why regular expressions are your friend. This is written in Stata but applies to any language where regular expressions exist.Original version if length("`qx'")==3 { ...

Read more »

Tab completion

January 30, 2011
By
Tab completion

Let's say your hands are aching from too much typing in of variables. What to do? Get a keyboard tray and learn proper ergonomics, of course.But what if you just want to reduce the amount of typing in of variables you do for reasons of laziness...err...

Read more »

Post-estimation results manipulation: Stata vs. R

January 26, 2011
By
Post-estimation results manipulation: Stata vs. R

Stata's new "margins" command is as powerful as "Zelig" package for R for the purpose of conducting post-estimation manipulation of the results (e.g. producing predicted probabilities, confidence intervals, etc.). While "margins" uses delta method, "Ze...

Read more »

STATA: Regular expressions

January 23, 2011
By
STATA: Regular expressions

A regular expression allows you to do a moderately fancy search (and replace if you want). So say you wanted to replace all the "Dennis"s in a variable with "Awesome"s, but only if they're at the end of the line. You could try:-replace PBFnamevar = r...

Read more »

Example 7.39: Nelson-Aalen estimate of cumulative hazard

May 31, 2010
By
Example 7.39: Nelson-Aalen estimate of cumulative hazard

In our previous example, we demonstrated how to calculate the Kaplan-Meier estimate of the survival function for time to event data. A related quantity is the Nelson-Aalen estimate of cumulative hazard. In addition to summarizing the hazard incurred ...

Read more »

What Social Network Analysis software do you use?

May 12, 2010
By
What Social Network Analysis software do you use?

See a the poll here by Gabriel Rossman at Code and Culture. I voted for R and ‘igraph’. If you use R you are getting access to all the other wonderful things that come with R. Using specialized package, like Pajek, UCINET etc requires constant going back and forth between network software and some...

Read more »

An article attacking R gets responses from the R blogosphere – some reflections

April 16, 2010
By
An article attacking R gets responses from the R blogosphere – some reflections

In this post I reflect on the current state of the R blogosphere, and share my hopes for the future

Read more »

Sponsors