Tengo una tabla con más de 2000 filas. Se debe probar la normalidad de cada fila de datos. Coloque PValue al final de cada fila de datos. ¿Hay alguna fórmula?
Cree la nueva columna en su tabla de datos.Asegúrese de ingresar a Col Info y establezca el formato de la columna en "PValue".
Luego abra el Editor de fórmulas para la nueva columna y pegue la siguiente columna en él
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;
Esta fórmula tardará varios minutos en ejecutarse en una tabla de 2000 filas.
Los comentarios en la fórmula anterior no se guardarán como parte de la fórmula (es una eficiencia de JMP, para mantener solo la parte ejecutable de la fórmula).
Normalmente, los datos de JMP tienen un formato de 90 grados con respecto a la forma en que están estructurados sus datos.La columna contiene los datos que se analizarán y las filas representan las diferentes instancias para la medición dada.