在使用估算报表时,我对SAS proc surveylogistic的输出有疑问(我认为问题与正常的proc logistic相同)。当我有一个交互项并且我编写多个估计语句来估计我的OR时,SAS输出多个表,每个估计语句一个。这是示例代码,它将产生三个单独的估计表,每个语句一个:
proc surveylogistic data=dataset nomcar;
class y / param=ref;
model outcome (ref='0')= x y z x*y;
weight weight;
strata strata;
cluster PSU;
domain insubset;
estimate 'OR for y=1 (vs y=0) @ level 1 of x' y 1 x*y 1 0 / exp cl;
estimate 'OR for y=1 (vs y=0) @ level 2 of x' y 1 x*y 0 1 / exp cl;
estimate 'OR for y=1 (vs y=0) @ level 3 of x' y 1 / exp cl;
run;
假设y是二分的,x是3级分类变量。
如果我做ODS TRACE,我可以看到它们都有相同的名称:
Output Added:
-------------
Name: Estimates
Label: Estimate
Template: Stat.SurveyLogistic.Estimates
Path: Surveylogistic.Domain2.Estimates.Estimates
-------------
Output Added:
-------------
Name: Estimates
Label: Estimate
Template: Stat.SurveyLogistic.Estimates
Path: Surveylogistic.Domain2.Estimates.Estimates
-------------
Output Added:
-------------
Name: Estimates
Label: Estimate
Template: Stat.SurveyLogistic.Estimates
Path: Surveylogistic.Domain2.Estimates.Estimates
有没有办法做多个估算语句并将它们输出到同一个表中?
编辑:我认为这个问题与建议的副本不同,因为我的问题涉及一个过程产生多个同名表,而另一个问题涉及过程的多次迭代。我还关注显示的SAS结果,而不是输出数据集。然而,最后,我放弃了尝试改变结果的显示方式,并且无论如何只是处理了输出数据集。