- webuse grunfeld, clear
- replace invest = . if (company == 1) & (year > 1940)
- replace mvalue = . if (company == 2) & (year == 1950)
- replace kstock = . if (company == 3) & (year < 1945)
- // without taking care of missing values
- xtbalance, range(1939 1950)
- // taking care of missing values
- xtbalance, range(1939 1950) miss(invest mvalue kstock)