All posts - Page 6 | Johan Osterberg - Product Engineer
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

  1. April 28, 2019

    Sometimes you need to split a variable into groups. There are several ways to achieve this in Stata, in this post we'll use the egen command…

  2. April 26, 2019

    As an alternative to dropping variables, it's possible to choose which ones to keep in a dataset. You can use the Variables Manager in Stata…

  3. April 23, 2019

    If you have two (or more) datasets that you want to combine, this can be achieved by using either the append or merge commands. The main use…

  4. April 22, 2019

    Dropping values in Stata is achieved by the drop command. Let's load the auto training dataset and create a new variable: That's just a new…

2026 © Johan Osterberg