Agregar lista al DoE categórico
He intentado muchas iteraciones de incluir llaves, sin incluirlas, entre comillas, etc., pero no puedo encontrar la manera de lanzar una lista a un nuevo DoE con jsl. La idea es tratar de lograr algo como lo que se muestra a continuación:
itemList = {"item 1", "item 2", "item 3"};
DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ),
Add Factor( Categorical, itemList, "item", 0 ),
Set Random Seed( 5111413 ), Simulate Responses( 0 ), Save X Matrix( 0 )}
);
GAMAScriptingRe: Agregar lista al DoE categóricoSolo necesita agregar un Eval () alrededor de la lista
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
summarize(dt,itemList = By(:sex));
DOE(
Custom Design,
{Add Response( Maximize, "height", ., ., . ),
Add Factor( Categorical, eval(itemList), "item", 0 ),
Set Random Seed( 5111413 ), Simulate Responses( 0 ), Save X Matrix( 0 )}
);Re: Agregar lista al DoE categóricoHola @txnelson ,
Muchas gracias por su respuesta. ¿Intentaste ejecutar ese código? Solo intenté y aún no obtuve la lista que llena el DoE.
Names Default to Here (1);
itemList = {"item 1", "item 2", "item 3"};
DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ),
Add Factor( Categorical, Eval(itemList), "item", 0 ),
Set Random Seed( 5111413 ), Simulate Responses( 0 ), Save X Matrix( 0 )}
);
Re: Agregar lista al DoE categóricoTienes razón sobre el código anterior que no funciona ..... No examiné los resultados lo suficientemente cerca. Pero aquí hay un código que funciona

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
Summarize( dt, itemList = By( :sex ) );
Eval(
Substitute(
Expr(
DOE(
Custom Design,
{Add Response( Maximize, "height", ., ., . ),
Add Factor( Categorical, __list__, "Sex", 0 ),
Set Random Seed( 5111413 ), Simulate Responses( 0 ), Save X Matrix( 0 )}
)
),
Expr( __list__ ), itemList
)
);Re: Agregar lista al DoE categóricoLo mismo con Parse (), o Parse (Eval (, o Eval (Parse (...