使用 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 将结果从表达式保存到日志谢谢!!