在将消息发送结果“ X将结果发送至Fit Life”时,该函数返回无法解析的列表。 以下是运行示例脚本的日志结果。 无法从返回的列表中提取任何数据。 请注意,该列表只有1个元素,且长度为9个字符,且ID为Lognormal。
//clear log();
Names Default To Here( 1 );
Clear Globals();
dt = Open( "$SAMPLE_DATA/Reliability/Devalt.jmp" );
obj = dt << Fit Life by X(
Y( :Hours ),
X( :Temp ),
Distribution( Lognormal ),
Censor( :Censor ),
Relationship( Arrhenius Celsius ),
Freq( :Weight ),
Nested Model Tests( Regression )
);
r = obj << Get Results;
If( Is List( r ),
Show( r );
Show( N Items( r ) );
Show( Length( r[1] ) );
);
obj << close window;
Close( dt, nosave );
/*:
r = {Lognormal({β0(-13.4686494027261), β0 Std Error(2.88719528358502), β1(0.627852956861924), β1 Std Error(0.0828387976570147), σ(0.977823306557825), σ Std Error(0.132646840946067), Covariance Matrix(
[ 8.3358966055556 -0.238821313406502 -0.195117141288106,
-0.238821313406502 0.00686226639725982 0.00592730106968758,
-0.195117141288106 0.00592730106968758 0.0175951844129713]), maximum loglikelihood(-321.702778021814), AICc(649.554624366609), BIC(658.723392465329), Converged("Yes")})};
N Items(r) = 1;
Length(r[1]) = 9;
可以从数据结构中提取项目。例如:
b0 = r["LogNormal"]["β0"];
b0_se = r["LogNormal"]["β0 Std Error"];
show(b0,b0_se);
b0 = -13.4686494027261;
b0_se = 2.88719528358502;