经管之家送您一份
应届毕业生专属福利!
求职就业群
感谢您参与论坛问题回答
经管之家送您两个论坛币!
+2 论坛币
- conmed = structure(list(id = c(2L, 2L), cmstdate = structure(c(2L, 1L), .Label = c("1/1/2014",
- "1/3/2014"), class = "factor"), cmmed = structure(c(2L, 1L), .Label = c("Inducers",
- "Inhibitors"), class = "factor"), cmstdy = c(2L, 0L), cmendy = c(4L,
- 1L), cmlocap = c(NA, NA), cmhicap = c(NA, NA), cmseq = 0:1), .Names = c("id",
- "cmstdate", "cmmed", "cmstdy", "cmendy", "cmlocap", "cmhicap",
- "cmseq"), class = "data.frame", row.names = c(NA, -2L))
复制代码how to create a event history diagram the below SAS code create in R with above data? - proc sgplot data=conmed noautolegend nocycleattrs;
- refline 0 / axis=x lineattrs=(thickness=1 color=black);
- highlow y=cmseq low=cmstdy high=cmendy / type=bar barwidth=0.8 lowlabel=cmmed
- lowcap=cmlocap highcap=cmhicap fillattrs=(color=cx9BDCF2);
- scatter y=cmseq x=cmstdate / markerattrs=(size=0) x2axis;
- yaxis display=(nolabel noticks novalues) min=0;
- xaxis grid label='Study Days' offsetmax=0.02;
- x2axis notimesplit display=(nolabel) offsetmax=0.02 tickvalueformat=date7.;
- run;
复制代码
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
|