生命分布 - 如何在同一张图中制作 2 个图,一个显示生存,另一个不显示生存?我有一个区间删失数据表,当我做生命分布 --> 比较组时,它给了我 Plot1;我真正想要的是Plot2,为了做到这一点,我必须在没有比较组的情况下进行生命分布,使用单独的EVO / PVO图生成plot3,更改EVO以显示生存曲线,手动复制PVO图的帧内容并粘贴帧将内容放入 EVO 图中以获取 plot2。很手动,有没有好办法用脚本生成Plot2?

生命分布 --> 比较组

情节1

Plot2,左线是 EVO显示生存, 右图是 PVO不显示生存;

寿命分布 --> 按 EVO/PVO

Plot3,EVO有显示生存, PVO 有炫耀生存

图形脚本回复:生命分布 - 如何在同一张图中制作 2 个图,一个显示生存,另一个不显示生存?也许是这样的:
//Your By-group analysis script.
obj = Life Distribution(
SendToByGroup( Bygroup Default ),
Y( :Y ),
//other messages
By( :Group )
);
//Get the display box trees of the two Life Distribution results.
rpt1 = report(obj[1]);
rpt2 = report(obj[2]);
//Get the correct frame boxes, send copy-paste messages.
//Finding the number in framebox(...) is the key.
//The number is relative to the root of tree. Here rpt1 and rpt2 are two roots.
//And the frameboxes are the SECOND frameboxes.
//The FIRST frameboxes relative to rpt1 and rpt1 are the Event Plot frames.
rpt1[framebox(2)] << copy frame contents;
rpt2[framebox(2)] << paste frame contents;