I am trying to create a line graph that does not connect when there are observations with missing data. The cmissing option does not appear to be functioning as I expect it would. Using an example given in a previous answer on this topic (https://www.statalist.org/forums/for...issing-command), I would think the following code would have a line broken in the middle:
Code:
webuse grunfeld,clear
replace invest = .  if inrange(year, 1940, 1950)
twoway line invest year if com == 1, cmissing(n)
However, I get a single line with the points connecting Array

Any help is appreciated.