如何手动将多重回归线添加到JMP Graph Builder 我使用JMP 13.1.0制作了以下图表:

我想从我的多元回归模型中手动添加一行,如下所示:
- Log(估计)=拦截+ Log(真值)+域+ 日志(真理)*日志(真相) + 日志(真相) *域名+ 日志(真理)*日志(真理)*域名
基于上图:
Variables(
X( :Name( "Log(truth)" ) ),
Y( :Name( "Log(estimate)" ) ),
Overlay( :Domain )
),
我试过以下脚本:
Dispatch(
{},
"Graph Builder",
FrameBox,
{Add Graphics Script(
2,
Description( "Script" ),
Pen Color( "green" );
Pen Size( 3 );
Y Function(-.333 - .31(Domain) + .236(x) - .029(x*x) + .107(Domain*x) + .330(Domain*x*x), x )但是,它不起作用,因为我不知道如何引用我的“域”变量,它覆盖在上面显示的图形中。
谢谢你的帮助,
阿德里安
Re:如何手动将多重回归线添加到JMP Graph Builder阿德里安,
我假设Domain == 1表示食物,0表示小工具。 首先.31(域)在没有乘法符号(*)的情况下不起作用。
我建议如下:sepcify 2行,一个是Domain == 1而另一个是Domain == 0或者替换相应的指标值并使用mutiplication符号。
Dispatch(
{},
"Graph Builder",
FrameBox,
{Add Graphics Script(
2,
Description( "Script" ),
Pen Color( "green" );
Pen Size( 3 );
Y Function(-.333 - .31 + .236*x - .029*x*x + .107*x + .330*x*x, x );
Y Function(-.333 + .236*x - .029*x*x , x );
酷图!