I'm trying this code (just below), Stata seems to read it -- it does not show any errors --, but it does not generate any variables. Here it is:
cumul price if dummy==1, gen(cprice1)
cumul price if dummy==0, gen (cprice2)
line cprice1 cprice2 price
Could you guys help me? I could graph two kernel density distributions with a condition of "if" for the dummy, with a similar code, in which I stored the results for latter graphing them -- following the help files in Stata. But I could not do this with the cumulative distributions.