What is the fastest/easiest way to generate a table with he information that I get via % of total in Graph Builder?
Unfortunately, % of total in Summary and Tabulate take all rows of the table as a references.
But I need a separate analysis for each group - like in Graph Builder or in Pareto.
Per Unit Rates in Pareto gives the correct list - but unfortunately, it's into 2 DisplayBoxes.
As this is a very common task, I guess there is a direct way to generate such a list, but I couldn't find it ....
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Pareto Plot(
Cause( :age ),
X( :sex ),
Percent Scale( 1 ),
Show cumulative Percent Curve( 0 ),
Per Unit Rates( 1 )
);
dt << Graph Builder(
Variables( X( :age ), Group X( :sex ) ),
Elements(
Bar( X, Summary Statistic( "% of Total" ) )
)
);
dt << Summary(
Group( :sex ),
"% of Total"n( :sex ),
Subgroup( :age )
);
dt << Tabulate(
Add Table(
Column Table( Grouping Columns( :age ), Statistics( "% of Total"n ) ),
Row Table( Grouping Columns( :sex ) )
)
)