Ciao a tutti
Sto cercando il codice JSL per far sì che la piattaforma "Fit Model" trasformi automaticamente i dati in Box Cox utilizzando "Sostituisci con Trasforma" o "Riadatta con Trasforma"

Grazie per tutto il tuo aiuto
Saluti
Giacomo
Ciao @Jakob
Ho dovuto modificare leggermente l'esempio dall'indice di scripting, ma dovrebbe funzionare (basta inserire la riga 'Refit' per avviarne l'esecuzione):
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = dt << Fit Model(
Y( :ABRASION ),
Effects( :SILICA, :SILANE, :SULFUR ),
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run
);
Wait( 1 );
obj << Box Cox Y Transformation(
1,
Refit with Transform( 1 )
);
Grazie,
Ben
Ciao Ben
Grazie per l'aiuto,
Ho provato a utilizzare la soluzione, ma ottengo risultati diversi nelle colonne esportate quando utilizzo l'approccio manuale e la versione con script:
Il motivo potrebbe essere che chiamo finestra il primo modello di adattamento?
Saluti
Giacomo
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = dt << Fit Model(
Y( :ABRASION ),
Effects( :MODULUS, :ELONG, :HARDNESS, :SILICA, :SILANE, :SULFUR ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Screening" ),
Run(
<<{Summary of Fit( 0 ), Analysis of Variance( 0 ), Parameter Estimates( 0 ), Effect Tests( 0 ), Effect Details( 0 ),
Lack of Fit( 0 ), Expanded Estimates( 0 ), Sorted Estimates( 0 ), Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 1 ), Plot Effect Leverage( 0 ),
Plot Residual by Normal Quantiles( 0 ), Show All Confidence Intervals( 0 ), Show Sqrt Variance Component( 1 ),
Box Cox Y Transformation( 1 ), Scaled Estimates( 0 ), Profiler( 0 )},
FDR( 0 ),
),
SendToReport(
Dispatch( {}, "Box-Cox Transformations", OutlineBox, {Close( 0 )} )
)
);
obj << Predicted Values;
obj << Std Error of Individual;
Wait( 1 );
obj << Box Cox Y Transformation(1,Refit with Transform(1));
Wait( 3 );
obj << Predicted Values;
obj << Std Error of Individual;
Ciao @Jakob , quale valore lambda usi quando esegui manualmente? Potrebbe essere lì la differenza. Cambia il valore di "Refit with Transform (1)" con il valore lambda che usi. Ad esempio,
obj << Box Cox Y Transformation(1,Refit with Transform(0.95));
Ciao Ben
Grazie mille per l'aiuto
Saluti
Giacomo