0

在 ODS POWERPOINT 语句中,我打算从 PROC MIXED 产生一些输出。我不希望显示所有表格。使用 ODS TRACE ON 会将以下结果传递到日志:

输出添加:


名称:模型信息

标签:型号信息

模板:Stat.Mixed.ModelInfo

路径:Mixed.ModelInfo


输出添加:


名称:ClassLevels

标签:班级级别信息

模板:Stat.Mixed.ClassLevels

路径:Mixed.ClassLevels


输出添加:


名称:尺寸

标签: 尺寸

模板:Stat.Mixed.Dimensions

路径:混合。维度


输出添加:


名称:NOBS

标签:观察次数

模板:Stat.Mixed.NObs

路径:混合.NObs


输出添加:


名称:IterHistory

标签:迭代历史

模板:Stat.Mixed.IterHistory

路径:Mixed.IterHistory


输出添加:


名称:收敛状态

标签: 收敛状态

模板:Stat.Mixed.ConvergenceStatus

路径:Mixed.ConvergenceStatus


注:符合收敛标准。

输出添加:


名称: CovParms

标签:协方差参数估计

模板:Stat.Mixed.CovParms

路径:Mixed.CovParms


输出添加:


名称:FitStatistics

标签:拟合统计

模板:Stat.Mixed.FitStatistics

路径:Mixed.FitStatistics


输出添加:


名称:SolutionF

标签: 固定效应解决方案

模板:Stat.Mixed.SolutionF

路径:Mixed.SolutionF


输出添加:


名称:Tests3

标签: 固定效应的类型 3 检验

模板:Stat.Mixed.Tests3

路径:Mixed.Tests3


输出添加:


名称:LSMeans

标签:最小二乘均值

模板:Stat.Mixed.LSMeans

路径:Mixed.LSMeans


注意:PROCEDURE MIXED 使用(总处理时间):

  real time           0.15 seconds

  cpu time            0.07 seconds

...

我只想显示名为“CovParms”、“Tests3”和“LSMeans”的输出。我在 PROC MIXED 之前添加了一个 ODS SELECT 语句,如下所示:

ODS POWERPOINT FILE='..\program\outputtest.pptx' nogtitle nogfootnote;

ods noptitle;

ods 追踪;

--- 程序 ---

ODS SELECT CovParms Tests3 LSMeans;

proc混合数据=数据;

ABCD类;

型号 Y = XA XB XA BA B*X

       / DDFM=KENWARDROGER solution;

随机 C D A D;

ls 表示 A*B;

跑;

退出;

--- 程序 ---

ODS POWERPOINT 关闭;

然而,所有表格都显示在 power point 文件中 - 不仅是 ODS SELECT 语句中所述的那些。日志说:

第1323章

警告:未创建输出“LSMeans”。确保

     output object name, label, or path is spelled

     correctly.  Also, verify that the appropriate

     procedure options are used to produce the requested

     output object.  For example, verify that the NOPRINT

     option is not used.

警告:未创建输出“Tests3”。确保

     output object name, label, or path is spelled

     correctly.  Also, verify that the appropriate

     procedure options are used to produce the requested

     output object.  For example, verify that the NOPRINT

     option is not used.

警告:未创建输出“CovParms”。确保

     output object name, label, or path is spelled

     correctly.  Also, verify that the appropriate

     procedure options are used to produce the requested

     output object.  For example, verify that the NOPRINT

     option is not used.

警告:当前的 ODS SELECT/EXCLUDE/OUTPUT 语句是

     cleared because the end of a procedure step was

     detected. Probable causes for this include the

     non-termination of an interactive procedure (type

     quit; to end the procedure) and a run group with no

     output.

但是,当我省略其他程序时,我确实获得了预期的输出。

有什么问题?任何帮助表示赞赏。

4

1 回答 1

0

这在测试样本数据集上按预期工作。

ods select covparms lsmeans tests3;

proc mixed data=sashelp.cars;
  class type origin;
  model mpg_highway = type origin type*origin;
  lsmeans type*origin;
  run;
quit;

ods select all;

向它添加ods powerpoint包装器也可以按预期工作。

如果这对您不起作用,我会查看标准问题。首先尝试运行此示例代码,或者更接近您的实际数据的示例代码。(这只是我制作的随机模型)。如果可行,请查看您的实际数据并确保它不会因为数据固有的原因而失败。

于 2016-03-21T17:48:24.543 回答