In the PLS-module it is straightforward to save the prediction formula and the standard error of prediction formula.
Is there also a way to save the DModX / DModY / T2 for the predictions, for additional outlier detection ?
Thanks !
Look under the red hot spot for your model (NIPALS or SIMPLS) - go to Save Columns and save T Square and Distance. Distance will save DModX and DModY values.
My apologies, I should have checked to see if those were saved as formula columns in the PLS platform.
You can get DModX and T square formulas from the Prinipal Components platform if that helps.
Something like this?
Names Default To Here( 1 ); dt = Open( "$SAMPLE_DATA/Tiretread.jmp" ); //DModX formlula from the Principal Components Platform obj1=dt << Principal Components( Y( :ABRASION, :MODULUS, :ELONG, :HARDNESS ), Estimation Method( "Default" ),"on Correlations"); obj1 << Save DMODX( 3 ); formula1= :DModX<<get formula(); //T Square formlula from the Multivariate Platform obj2=dt<<Multivariate( Y( :ABRASION, :MODULUS, :ELONG, :HARDNESS )); obj2 << T Square(1, Save T Square);