该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Tabulate( // message to data table
Add Table( // start a new table
Column Table( Grouping Columns( :sex ) ), // group using the column sex
Row Table( // add rows to the table
// use the height and weight columns for the analysis
You can apply a transformation to a column in the Tabulate table and set the format of the column at the same time. Use the Transform Column() function inside Analysis Column(). For example, the following script applies the Log transformation to height and sets the column format for the Mean and % of Total columns.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Tabulate(
Mean(
:height( 10, 1 ),
"Log[height]",
Formula( Log( :height ) )
Format( 10, "Best" )
Name( "% of Total" )(:height( 12, 2 ),
"Log[height]",
Formula( Log( :height ) )
Format( 12, 2 )
"Log[height]",
Formula( Log( :height ) )
Statistics( Mean, Name( "% of Total" ) )