我想将一些结果与标准耗尽曲线进行比较。我想绘制预期值曲线并遮蔽两条置信区间曲线之间的区域。有谁知道我该怎么做?
非常感谢,
约翰
@johnmoore
自从@马克贝利说他很忙,我想我会添加另一个选项:
- 如果您有平均曲线的标准和预测或个体值的预测的列,您可以使用 Graph Builder Area 元素来构建图形。
- 您还可以使用列转换来创建临时列,这有点混乱,因为预测曲线需要 Std Error 公式,这在转换公式中有点混乱。 请注意,标准公式应限制预测范围并根据标准使用适当的自由度。
下面的示例和脚本作为使用选项#1 的 GraphBuilder 功能的简单示例提供

Names Default to Here(1);
//Note the Elements order is important, the last one will be on top, the first in the background
dt = open("c:\temp\BigClass_StandardCI.jmp");
gb = dt << Graph Builder(
Size( 534, 454 ),
Show Control Panel( 0 ),
Variables(
X( :height ),
Y( :Standard ),
Y( :Lower 95% Standard, Position( 1 ) ),
Y( :Upper 95% Standard, Position( 1 ) ),
Y( :New Curve, Position( 1 ) ),
Y( :weight, Position( 1 ) )
),
Elements(
Line( X, Y( 1 ), Legend( 1 ) ),
Area( X, Y( 2 ), Y( 3 ), Legend( 2 ), Area Style( "Range" ) ),
Points( X, Y( 5 ), Legend( 3 ) ),
Line Of Fit( X, Y( 4 ), Legend( 4 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
1,
Level Name( 0, "Standard", Item ID( "Mean(Standard)", 1 ) ),
Properties( 0, {Line Width( 3 )}, Item ID( "Mean(Standard)", 1 ) )
), Legend Model(
2,
Properties(
0,
{Transparency( 0.4 )},
Item ID(
"Mean(Lower 95% Standard)..Mean(Upper 95% Standard)",
1
)
)
), Legend Model(
4,
Properties( 0, {Line Width( 3 )}, Item ID( "New Curve", 1 ) )
)}
),
Dispatch(
{},
"Y title",
TextEditBox,
{Set Text( "Weight Curve vs Standard" )}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {1, [0], 2, [-1], 3, [2], 4, [1, -3]} ),
Position( {0, -1, 2, 1, -3} )}
)
)
);我现在太忙了,无暇顾及完整的解决方案,但也不是太忙,无法“开始工作”。
如果公式独立于数据并且是预先确定的,则可以将一个或多个图形脚本添加到图形生成器中的框架框以提供您想要的视觉参考。 我不知道图形脚本是在 Graph Builder 绘制自己的图形元素之前还是之后运行。
不对,
感谢您的回复。我想参考的标准曲线是独立于我正在绘制的数据的公式列。因此,在图表的背景中,我想显示标准预期值曲线以及标准曲线的置信上限和下限。在此之前,我想绘制数据,以便我们可以看到“是”与“应该是”的比较
约翰
有两种方法。
1)在左侧,选中“预测”框
2) 右键单击绘图 --> 拟合线 --> 单击“预测”