SAS PROC TABULATE- 以特定格式将图像添加到过程列表

问题描述 投票:0回答:0

我正在尝试以这种确切的格式将图像添加到 proc 列表中。 This format

但是这是我当前的输出,下面是相关代码。 My output

代码:

data cutepets;
input gender $ type$ numpets;
datalines;
boy  cockatiel 1
boy  turtle    3
boy  rabbit    4
girl cockatiel 2
girl turtle    3
girl rabbit    7
;
proc format;
value $cutjpegs
    'Cockatiel'='//vdi-fileshare01/UEMprofiles/029946759/Desktop/Cockatiel.jpg'
;
value $color
'type' = 'green';
run;
title 'pet';
proc tabulate data = cutepets;
class type / s=[postimage=$cutjpegs.] 
gender / s=[background=blue foreground=white];
classlev type / s=[background=green foreground=white];
var numpets  ;
table gender* numpets = ' ', type = ' '
sum = ' '
/ rts=25 row=float
 box={label='# of pets'}
;

run;

我尝试使用 proc 格式并为一只宠物输入值语句作为测试,看看它是否会输出任何东西。然而,在通过众多资源进行挖掘之后,没有占上风,也不知道为什么。可能只是一个简单的语法错误。我很难过,不知道从这里去哪里。

statistics sas formatting output tabulate
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.