【发布时间】: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