Working with online resources in Stata | Johan Osterberg - Product Engineer

Working with online resources in Stata

April 05, 2019

One neat feature of Stata is that you can load and work with online datasets. For example on the Stata website there are numerous links to various resources, including datasets. Following one of these, for example Experimental Design Procedures For The Behavioral Sciences there are the complete datasets accompanying the book for download. To load on of these into Stata, simply enter:

use https://stats.oarc.ucla.edu/stat/stata/examples/kirk/co3.dta, clear

Now a the file co3.dta should be loaded into memory, and could easily be stored locally if desired as well by using File > Save as.

Loading an online dataset


Profile picture

Written by Johan Osterberg who lives and works in Gothenburg, Sweden as a developer specialized in e-commerce. Connect with me on Linkedin

2024 © Johan Osterberg