2,000 行を超えるテーブルがあります。データの各行の正規性をテストする必要があります。データの各行の末尾に PValue を配置します。数式はありますか?
データ テーブルに新しい列を作成します。必ず列情報に移動し、列の形式を「PValue」に設定してください。
次に、新しい列の式エディターを開き、以下の列を貼り付けます
dt = Current Data Table();
// change the Index value for the starting column number of the columns to be analyzed
theRow = dt[Row(), Index( 5, N Col( dt ) - 1 )];
// Create a temporary working data table to calculate the normality on
dtTemp = New Table( "temp", private, New Column( "x", values( theRow ) ) );
// Run the Distribution Platform to calculate the normality
dis = Distribution( invisible, Continuous Distribution( Column( :x ), Fit Normal( Goodness of Fit( 1 ) ) ) );
// Retrieve the P Value of the Normality statistic
pval = (Report( dis )["Goodness-of-Fit Test", Number Col Box( 2 )] << get)[1];
// Clean up the behind the scenes working table and display
dis << close window;
Close( dtTemp, nosave );
// Apply the pvalue to the current row
pval;
この数式は、2000 行のテーブルで実行するのに数分かかります。
上記の式のコメントは、式の一部として保存されません (JMP の効率のため、式の実行可能な部分のみを保持します)。
通常、JMP データは、データの構造とは 90 度異なる形式でフォーマットされます。列には分析対象のデータが含まれ、行は特定の測定のさまざまなインスタンスを表します。