生命分佈 - 如何在同一張圖中製作 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;