全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
3368 5
2015-03-03
Stata如何做cubic spine图
横轴:Number of nodes examined;纵轴:Log hazard ratio


Number of nodes examined

Survival months

Sensored

Age

Gender

18

13

1

33

Male

11

8

1

63

Female

6

5

1

73

Male

16

6

1

63

Male

12

4

1

68

Male

11

16

1

65

Male

8

30

1

51

Male

12

26

1

74

Male

2

11

1

72

Female

3

3

0

72

Male

2

5

1

69

Male

5

15

1

66

Male

4

68

1

59

Male

1

16

1

54

Female

4

46

1

54

Male




二维码

扫码加我 拉你入群

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

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

全部回复
2015-3-6 21:38:27
R语言Hmisc包可以做,但是有问题:rcspline.plot(x,y,model=c("cox"),event=z)
Error in coxph.fit(cbind(x, adj), cbind(y, event), strata = NULL, offset = NULL,  :
  REAL() can only be applied to a 'numeric', not a 'integer'
x:Number of nodes examined
y:Survival.months
z:Sensor
二维码

扫码加我 拉你入群

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

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

2015-3-6 21:40:04
model       
"logistic" or "cox". For "cox", uses the coxph.fit function with method="efron" arguement set.
这是什么意思?
二维码

扫码加我 拉你入群

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

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

2018-10-5 14:35:42
您好,我现在也在想做个另外一个瘤种的类似研究,做个类似的图,向您求教
二维码

扫码加我 拉你入群

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

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

2019-9-5 22:52:58
sleep3000 发表于 2015-3-6 21:40
model       
"logistic" or "cox". For "cox", uses the coxph.fit function with method="efron" arguement se ...
您在哪里看到的呢?
二维码

扫码加我 拉你入群

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

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

2019-9-5 22:54:00
请问解决了吗?
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群