범주 형 DoE에 목록 추가
따옴표 등을 포함하지 않고 중괄호를 포함하여 많은 반복을 시도했지만 jsl을 사용하여 새 DoE에 목록을 전송하는 방법을 알 수 없습니다. 아이디어는 다음과 같은 것을 시도하고 달성하는 것입니다.
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 )}
);
암사슴스크립팅Re : 범주 형 DoE에 목록 추가목록 주위에 Eval ()을 추가하기 만하면됩니다.
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 : 범주 형 DoE에 목록 추가안녕하세요 tx ,
답장 해주셔서 매우 감사합니다. 그 코드를 실행하려고 했습니까? 방금 시도했지만 여전히 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 : 범주 형 DoE에 목록 추가이전 코드가 작동하지 않습니다. 그러나 여기 작동하는 코드가 있습니다.

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 : 범주 형 DoE에 목록 추가Parse () 또는 Parse (Eval (또는 Eval (Parse (...