Some observations in my dataset need to be divided into two or three differential observations. For example, the following observation:
region income gdp other North 120 450 50
I need to break it down into three observations with the same values for all variables, except for an area like this:
region income gdp other IL 120 450 50 MI 120 450 50 IN 120 450 50
I need something like:
if (region == "North") { //create three new observations and delete the old one }
Is this possible with Stata?
source share