1

使用 JSL 脚本,我绘制了来自两个条件 A 和 B 的几个变量 V1、V2、V3(等等),以查看它们的相关性如何。例如。A 的 V1 与 B 的 V1。

然后我将这些图表发送到 JMP 报告中,这样所有图表都将显示在一个窗口中。

在 JMP 中,我使用“拟合线”命令生成 R 方表。然后,我使用“Fit Special”命令生成斜率等于 1 的线。因此,我创建线性回归线并创建回归报告。请参阅http://www.jmp.com/support/help/Regression_Reports.shtml#846953

我的问题是这个。如何从回归报告中“提取”数字并将它们放入变量中?

我的目的是这个。我需要在单个表中列出 R 平方值和 y 截距。现在,我正在手动输入。

非常感谢你。

4

1 回答 1

1

以下是基于 JMP 中的血压样本数据的样本:

我们将对 X 使用“BP 6M”,对 Y 使用“BP 8M”进行“拟合 X 到 Y”,并添加一条拟合线。这个初始部分是通过“将脚本保存到脚本窗口”完成的。biv+其余的命名被添加。

/* get the Bivariate fit with its Fit Line into a variable */
biv = Bivariate( Y( :BP 8M ), X( :BP 6M ), Fit Line( {Line1 Color( {213, 72, 87} )} ) );

/* get the report into a variable */
reportbiv = biv << Report;

/* output the Summary of Fit to a table */
dt = reportbiv["Summary of Fit"][1] << MakeIntoDataTable;
于 2016-11-22T23:06:41.227 回答