我正在嘗試在獨立單變量 Cox 生存分析中測試多個變量(生存年數和後續審查年數)。 有沒有辦法同時運行多個變量,但進行獨立的單變量 Cox 分析而不是多變量分析? 我有很多想要測試的變量,並且不想一一地對它們進行計時。
有我應該使用的腳本嗎?
謝謝 !
你好@G卡丁,
您想從單變量 Cox 生存分析報告中獲得什麼樣的信息?
如果您想獲得效應似然比檢驗的所有 p 值,一種想法是使用列切換器和 jsl。
1. 擬合比例風險模型並從紅色三角形設置列切換器。

2. 在腳本窗口中編寫以下代碼並編輯腳本中的第 9 行。
rpt = Current Report();
colswitcher_obj = rpt[ColumnSwitcherCOntextOutlinebox( 1 )] << get scriptable object;
colswitch_list = colswitcher_obj << get list;
/* Loop through each column in the colswitch_list */
For( i = 1, i <= N Items( colswitch_list ), i++,
/* Change here */
dt1 = rpt[Outline Box( "Effect Likelihood Ratio Tests" )][Table Box( 1 )] <<
make combined data table;
/* Concatenate the tables */
If( i == 1,
main_tb = dt1;
main_tb << Set Name( "All" );
,
Try( main_tb << Concatenate( dt1, Append to First Table ) );
Close( dt1, No Save );
);
/* Close temporary tables and switch next column */
colSwitcher_obj << Next;
);
3. 從“編輯”菜單運行腳本。
您可以獲得包含 p 值信息的數據表。
我希望它有幫助。