Mi piacerebbe creare uno script che generi un disegno personalizzato, quindi restituire la matrice di progettazione a un file di testo, ad esempio "* .csv". Ecco uno script di esempio che genera il design personalizzato e una tabella JMP contenente la matrice di progettazione.
DOE(
Custom Design,
{Add Response( None, "My Response", ., ., . ),
Add Factor( Discrete Numeric, {1, 2, 3, 4, 5, 6, 7, 8, 9}, "f1", 0 ),
Add Factor( Discrete Numeric, {1, 2, 3, 4, 5}, "f2", 0 ),
Add Factor( Blocking, 7, "day" ),
Add Factor( Categorical, {"v1", "v2", "v3", "v3"}, "f3", 0 ),
Set Random Seed( 123 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {4, 1} ),
Add Alias Term( {1, 2} ),
Add Alias Term( {2, 2} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 2} ),
Add Alias Term( {2, 2} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {4, 1}, {2, 1} ),
Number of Starts( 581 ),
Replicates( 3 ),
Set Sample Size( 28 ),
Optimality Criterion( 3 ),
Make Design,
Make Table}
);Ho cercato la guida JSL Scripting JMP senza trovare una soluzione. Nell'indice Scripting, la voce "Tabella dati> Salva, Salva come" sembra promettente. Ha un esempio che dice:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Save( "C:\Big Class.csv" );
Non sono sicuro di come applicarlo. Dopo aver eseguito lo script DOE, la tabella è già aperta. Come ottengo l'handle per quella tabella (`dt` nell'esame) così posso salvarlo usando` dt << Salva ("C: \ mio \ percorso \ file.csv") `?
Penso che l'approccio per esternalizzare il messaggio "Crea tabella" e posizionare una maniglia sul risultato sia il modo più semplice per farlo
DOEPlatform = DOE(
Custom Design,
{Add Response( None, "My Response", ., ., . ),
Add Factor( Discrete Numeric, {1, 2, 3, 4, 5, 6, 7, 8, 9}, "f1", 0 ),
Add Factor( Discrete Numeric, {1, 2, 3, 4, 5}, "f2", 0 ),
Add Factor( Blocking, 7, "day" ),
Add Factor( Categorical, {"v1", "v2", "v3", "v3"}, "f3", 0 ),
Set Random Seed( 123 ),
Add Term( {1, 0} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {1, 1} ),
Add Term( {2, 1} ),
Add Term( {4, 1} ),
Add Alias Term( {1, 2} ),
Add Alias Term( {2, 2} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 2} ),
Add Alias Term( {2, 2} ),
Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {4, 1}, {2, 1} ),
Number of Starts( 581 ),
Replicates( 3 ),
Set Sample Size( 28 ),
Optimality Criterion( 3 ),
Make Design}
);
dt = DOEPlatform<<MAKE table=""></MAKE>