使用 JSL 將結果從表達式保存到日誌我有以下代碼,當我參加課程時,我從我的 JMP JSL SAS 教授那裡得到了很多幫助(所以我不完全理解它是如何工作的)。 它允許我在一個窗口中放置一堆(變量,由用戶選擇)分佈。 如何將結果窗口腳本化到我的代碼中較早創建的日誌? 我所有的其他圖形都很簡單——在日誌中創建了一個大綱框,然後在大綱框後面附加了我創建的圖形所在的排列框。 但是,這與那些我不明白我如何將其中包含多個(可變)分佈的結果單個窗口“保存”到日誌中的不同標題大綱框下的那些非常不同。 謝謝!
// Make Distribution of all Controlled Conditions in its own window
n = N Items( cont_cond );
If( N Items( cont_cond ),
yExpr = Expr( Y() );
For( iItem = 1, iItem <= n, iItem++,
Insert Into( yExpr, Column( cont_cond[iItem] ) )
);
Eval(
Substitute(
Expr(
dt << Distribution(
yyy,
quantiles( 0 ),
show percents( 1 ),
show counts( 1 ),
outlier box plot( 0 ),
customize summary statistics(
//Skewness(1),
//Kurtosis(1),
set alpha level( 0.2 )
)
)
),
Expr( yyy ), Name Expr( yExpr )
)
);
);圖形腳本編寫回复:使用 JSL 將結果從表達式保存到日誌如果將以下代碼添加到原始腳本中,並創建 cont_cond 列表,則以下代碼應將分佈添加到日誌的底部。
// Make Distribution of all Controlled Conditions in its own window
n = N Items( cont_cond );
If( N Items( cont_cond ),
yExpr = Expr( Y() );
For( iItem = 1, iItem <= n, iItem++,
Insert Into( yExpr, Column( cont_cond[iItem] ) )
);
Eval(
Substitute(
Expr(
dis = dt << Distribution(invisible,
yyy,
quantiles( 0 ),
show percents( 1 ),
show counts( 1 ),
outlier box plot( 0 ),
customize summary statistics(
//Skewness(1),
//Kurtosis(1),
set alpha level( 0.2 )
)
)
),
Expr( yyy ), Name Expr( yExpr )
)
);
nwjrn << append(report(dis));
);
回复:使用 JSL 將結果從表達式保存到日誌謝謝!!