3317 3

proc template 的问题 [推广有奖]

  • 0关注
  • 4粉丝

教授

12%

还不是VIP/贵宾

-

威望
0
论坛币
6752 个
通用积分
15.6910
学术水平
18 点
热心指数
24 点
信用等级
15 点
经验
407 点
帖子
1190
精华
0
在线时间
996 小时
注册时间
2013-1-20
最后登录
2024-4-1

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
各位大侠,

我自己写了一个barchart的template,但是跑程序老是有error,提示ERROR : Invalid byte 1 of 1-byte UTF-8 sequence ;但是我找不到原因,有没有哪位大侠对GTL 语句熟悉,帮我看看问题出在哪?程序在一楼和二楼,一楼是template程序,e二楼是数据集程序

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Template plate Late Temp ATE 管理局 sequence error ERROR

所有程序见二楼

使用道具

data serum1;
    input group n1 percent1 n2 percent2;
    length cat $20.;
    if group=1 then cat="< 1.2";
    if group=2 then cat=">= 1.2 to < 2.02";
    if group=3 then cat=">= 2.02 to < 5.35";
    if group=4 then cat=">= 5.35";
    cards;
     1 13 60 4  20
     2 12 50 3  18
     3 16 75 8  40
     4 14 65 6  33
     ;
run;

proc template;
    define statgraph barchart;
    begingraph;
        layout lattice /rows=6 rowweights=(0.40 0.05 0.05 0.40 0.05 0.05);
            layout overlay/ yaxisopts=(linearopts=(tickvaluesequence=(increment=20 start=0 end=100) viewmin=0 viewmax=100)
                                   label="Trough Serum Sirukumab Concentration (&micro;g/mL) in Log-scale"
                                    labelattrs=(family="Times New Roman" size=10pt)
                                    tickvalueattrs=(family="Times New Roman" size=10pt))
                            xaxisopts=(display=(line ticks) label="Baseline CRP Level (mg/dL) in Sirukumab 50 mg q4w Group");
                barchart x=group y=percent1;
            endlayout;

            blockplot x=group block=n1/ valuefitpolicy=shrink label="n=   "
                                       display=(label values);

            blockplot x=group block=cat/ valuefitpolicy=shrink display=(values);

            layout overlay/yaxisopts=(linearopts=(tickvaluesequence=(increment=20 start=0 end=100) viewmin=0 viewmax=100)
                                   label="Trough Serum Sirukumab Concentration (&micro;g/mL) in Log-scale"
                                    labelattrs=(family="Times New Roman" size=10pt)
                                    tickvalueattrs=(family="Times New Roman" size=10pt))
                            xaxisopts=(display=(line ticks)) ;
                barchart x=group y=percent2;
            endlayout;

            blockplot x=group block=n2/ valuefitpolicy=shrink label="n=   "
                                       display=(label values);

            blockplot x=group block=cat/ valuefitpolicy=shrink display=(values);

        endlayout;
    endgraph;
    end;
run;

proc sgrender data=serum1 template=barchart;
run;

使用道具

找到问题所在了,原来是其中有特殊字符不能识别

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-24 21:00