Dear Stata users,
I tried using Nick Cox's -ppplot- command (SSC) to compare the cumulative distributions of variable x across multiple groups. The command runs perfectly when I do not use an if qualifier. However, when I try to include an if qualifier in the command to select specific groups, ppplot outputs a blank graph. Does ppplot not support the if qualifier, or is there something I am misunderstanding about how to use this command? Thank you.
I tried using Nick Cox's -ppplot- command (SSC) to compare the cumulative distributions of variable x across multiple groups. The command runs perfectly when I do not use an if qualifier. However, when I try to include an if qualifier in the command to select specific groups, ppplot outputs a blank graph. Does ppplot not support the if qualifier, or is there something I am misunderstanding about how to use this command? Thank you.
Code:
use2 lbw tabulate race ppplot line bwt, by(race) plot(function y=x, clp(dash)) name(g1) ppplot line bwt if race<=2, by(race) plot(function y=x, clp(dash)) name(g2) keep if race<=2 ppplot line bwt, by(race) plot(function y=x, clp(dash)) name(g3)

Comment