cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-626680%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EUn%20grado%20de%20libertad%20de%20Tukey%20para%20la%20no%20aditividad%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-626680%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEstimada%20comunidad%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESoy%20profesor%20y%20estoy%20(poco%20a%20poco)%20incorporando%20nuevos%20contenidos%20de%20JMP%20Pro%20a%20mis%20cursos%20de%20qu%C3%ADmica.%20Un%20tema%20que%20cubro%20es%20la%20prueba%20de%201%20grado%20de%20libertad%20de%20Tukey%20para%20la%20no%20aditividad%20cuando%20tiene%20factoriales%20no%20replicados.%20%C2%BFHay%20alguna%20alternativa%20para%20ejecutar%20esta%20prueba%20con%20JMP%20Pro%20(no%20he%20encontrado%20nada%20en%20l%C3%ADnea).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Egracias%3C%2FP%3E%3CP%3ERita%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-626680%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAnal%C3%ADtica%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-626842%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Un%20grado%20de%20libertad%20de%20Tukey%20para%20la%20no%20aditividad%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-626842%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENo%20creo%20que%20haya%20ninguna%20forma%20integrada%20de%20obtener%20esta%20prueba%2C%20pero%20puede%20usar%20algo%20de%20JSL%20para%20construirla.%20Los%20pasos%20son%3A%20Ajuste%20su%20modelo%20ANOVA%20de%202%20v%C3%ADas.%20Guarde%20los%20valores%20predichos.%20Cuadrarlos.%20Ahora%20ajuste%20el%20modelo%20de%202%20v%C3%ADas%20nuevamente%2C%20pero%20agregando%20los%20valores%20al%20cuadrado%20como%20una%20columna.%20Esa%20prueba%20es%20su%20prueba%20no%20aditiva.%20He%20incluido%20un%20conjunto%20de%20datos%20de%20muestra%20con%20un%20script%20que%20hace%20esto.%20Aqu%C3%AD%20est%C3%A1%20el%20script%20que%20utilic%C3%A9%20que%20est%C3%A1%20codificado%20para%20este%20ejemplo.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(1)%3B%0A%0Adt%20%3D%20Current%20Data%20Table()%3B%0A%2F%2F%20Launch%20platform%3A%20Fit%20Least%20Squares%0Adt%20%3D%20Current%20Data%20Table()%3B%0AMod1%20%3D%20dt%20%26lt%3B%26lt%3B%20Fit%20Model(%0A%20Y(%20%3AImpurity%20)%2C%0A%20Effects(%20%3ATemp%2C%20%3APressure%20)%2C%0A%20Personality(%20%22Standard%20Least%20Squares%22%20)%2C%0A%20Emphasis(%20%22Effect%20Leverage%22%20)%2C%0A%20Run(%0A%20%20%3AImpurity%20%26lt%3B%26lt%3B%20%7BSummary%20of%20Fit(%201%20)%2C%20Analysis%20of%20Variance(%201%20)%2C%0A%20%20Parameter%20Estimates(%201%20)%2C%20Lack%20of%20Fit(%200%20)%2C%20Scaled%20Estimates(%200%20)%2C%0A%20%20Plot%20Actual%20by%20Predicted(%201%20)%2C%20Plot%20Regression(%200%20)%2C%0A%20%20Plot%20Residual%20by%20Predicted(%201%20)%2C%20Plot%20Studentized%20Residuals(%200%20)%2C%0A%20%20Plot%20Effect%20Leverage(%201%20)%2C%20Plot%20Residual%20by%20Normal%20Quantiles(%200%20)%2C%0A%20%20Box%20Cox%20Y%20Transformation(%200%20)%7D%0A%20)%2C%20Invisible%0A)%3B%0Amod1%20%26lt%3B%26lt%3B%20Prediction%20Formula%3B%0Amod1%20%26lt%3B%26lt%3B%20Close%20Window()%3B%0A%0A%0A%2F%2F%20New%20formula%20column%3A%20Pred%20Formula%20Impurity%5E2%0Adt%20%26lt%3B%26lt%3B%20New%20Formula%20Column(%0A%20Operation(%20Category(%20%22Transform%22%20)%2C%20%22Square%22%20)%2C%0A%20Columns(%20%3APred%20Formula%20Impurity%20)%0A)%3B%0A%0A%2F%2F%20Change%20column%20name%3A%20Pred%20Formula%20Impurity%5E2%20%E2%86%92%20Nonadd%0Adt%3A%22Pred%20Formula%20Impurity%5E2%22n%20%26lt%3B%26lt%3B%20Set%20Name(%20%22Non-Additive%20Test%22%20)%3B%0A%0A%0A%2F%2F%20Launch%20platform%3A%20Fit%20Least%20Squares%0Adt%20%26lt%3B%26lt%3B%20Fit%20Model(%0A%20Y(%20%3AImpurity%20)%2C%0A%20Effects(%20%3ATemp%2C%20%3APressure%2C%20%3A%22Non-Additive%20Test%22n%20)%2C%0A%20Personality(%20%22Standard%20Least%20Squares%22%20)%2C%0A%20Emphasis(%20%22Effect%20Leverage%22%20)%2C%0A%20Run(%0A%20%20%3AImpurity%20%26lt%3B%26lt%3B%20%7BSummary%20of%20Fit(%200%20)%2C%20Analysis%20of%20Variance(%200%20)%2C%0A%20%20Parameter%20Estimates(%201%20)%2C%20Sequential%20Tests(%201%20)%2C%20Lack%20of%20Fit(%200%20)%2C%20Scaled%20Estimates(%200%20)%2C%0A%20%20Effect%20Tests(%200%20)%2C%0A%20%20Plot%20Actual%20by%20Predicted(%200%20)%2C%20Plot%20Regression(%200%20)%2C%0A%20%20Plot%20Residual%20by%20Predicted(%200%20)%2C%20Plot%20Studentized%20Residuals(%200%20)%2C%0A%20%20Plot%20Effect%20Leverage(%200%20)%2C%20Plot%20Residual%20by%20Normal%20Quantiles(%200%20)%2C%0A%20%20Box%20Cox%20Y%20Transformation(%200%20)%7D%0A%20)%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Tukey's One Degree of Freedom for Non-Additivity

Dear Community,

 

I am a professor and I am (slowly) incorporating new JMP Pro content into my chemistry courses. One topic I cover is Tukey's 1 degree of freedom test for nonadditivity when you have non-replicated factorials. Are there any alternatives to run this test with JMP Pro (I haven't found anything online).

 

thanks

Rita

1 REPLY 1

Re: Tukey's One Degree of Freedom for Non-Additivity

I don't think there is any built-in way to get this test, but you can use some JSL to build it. The steps are: Fit your 2-way ANOVA model. Save the predicted values. Square them. Now fit the 2-way model again, but adding the squared values as a column. That test is your non-additive test. I have included a sample dataset with a script that does this. Here is the script that I used that is hard-coded for this example.

Names Default to Here(1);

dt = Current Data Table();
// Launch platform: Fit Least Squares
dt = Current Data Table();
Mod1 = dt << Fit Model(
	Y( :Impurity ),
	Effects( :Temp, :Pressure ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	Run(
		:Impurity << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
		Parameter Estimates( 1 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
		Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
		Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 0 ),
		Plot Effect Leverage( 1 ), Plot Residual by Normal Quantiles( 0 ),
		Box Cox Y Transformation( 0 )}
	), Invisible
);
mod1 << Prediction Formula;
mod1 << Close Window();


// New formula column: Pred Formula Impurity^2
dt << New Formula Column(
	Operation( Category( "Transform" ), "Square" ),
	Columns( :Pred Formula Impurity )
);

// Change column name: Pred Formula Impurity^2 → Nonadd
dt:"Pred Formula Impurity^2"n << Set Name( "Non-Additive Test" );


// Launch platform: Fit Least Squares
dt << Fit Model(
	Y( :Impurity ),
	Effects( :Temp, :Pressure, :"Non-Additive Test"n ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	Run(
		:Impurity << {Summary of Fit( 0 ), Analysis of Variance( 0 ),
		Parameter Estimates( 1 ), Sequential Tests( 1 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
		Effect Tests( 0 ),
		Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
		Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 0 ),
		Plot Effect Leverage( 0 ), Plot Residual by Normal Quantiles( 0 ),
		Box Cox Y Transformation( 0 )}
	)
);
Dan Obermiller

Recommended Articles