我正在尝试在独立单变量 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 值信息的数据表。
我希望它有帮助。