【问题标题】:Why do I get a warning when using ods select and proc mixed?为什么在混合使用 ods select 和 proc 时会收到警告?
【发布时间】:2016-03-21 14:15:03
【问题描述】:

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

添加的输出:


名称:模型信息

标签:型号信息

模板:Stat.Mixed.ModelInfo

路径:Mixed.ModelInfo


添加的输出:


名称:ClassLevels

标签:类级别信息

模板:Stat.Mixed.ClassLevels

路径:Mixed.ClassLevels


添加的输出:


名称:尺寸

标签:尺寸

模板:Stat.Mixed.Dimensions

路径:Mixed.Dimensions


添加的输出:


名称:NObs

标签:观察次数

模板:Stat.Mixed.NObs

路径:Mixed.NObs


添加的输出:


名称:IterHistory

标签:迭代历史

模板:Stat.Mixed.IterHistory

路径:Mixed.IterHistory


添加的输出:


名称:ConvergenceStatus

标签:收敛状态

模板:Stat.Mixed.ConvergenceStatus

路径:Mixed.ConvergenceStatus


注意:符合收敛标准。

添加的输出:


名称:CovParms

标签:协方差参数估计

模板:Stat.Mixed.CovParms

路径:Mixed.CovParms


添加的输出:


名称:FitStatistics

标签:拟合统计

模板:Stat.Mixed.FitStatistics

路径:Mixed.FitStatistics


添加的输出:


名称:解决方案F

标签:固定效果的解决方案

模板: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 混合数据=数据;

A B C D 类;

模型 Y = X AX BX AB AB*X

       / DDFM=KENWARDROGER solution;

随机 CD AD;

ls 表示 A*B;

运行;

退出;

--- 程序---

ODS POWERPOINT 关闭;

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

1323 ODS SELECT CovParms 测试3 LSMeans;

警告:未创建输出“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.

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

怎么了? 任何帮助表示赞赏。

【问题讨论】:

  • 您可以尝试将ods select 语句放入proc mixed(不是之前)吗?
  • 非常感谢,克里斯托斯。由于某种原因,它起作用了。

标签: sas powerpoint ods


【解决方案1】:

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

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 包装器也可以按预期工作。

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

【讨论】:

  • 是的,当我在包装器中只包含有问题的 proc 时,它也对我有用。但由于某种原因,在 proc 混合之前和之后添加过程时,ods select 语句不起作用。
  • 嗯,这可能是因为它们不会产生相同的结果。如果您需要帮助,请展示您尝试过但没有成功的方法。
猜你喜欢
  • 2019-11-06
  • 1970-01-01
  • 1970-01-01
  • 2010-11-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多