由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 问一个R的问题: survreg() vs. PROC LIFEREG
相关主题
proc lifereg,distribution selection请教个用SAS lifereg interval-censored survival analysis后作图的问题
如何SIMULATE CENSORING PROPROTION?包子求助Survival问题,很菜,请大家包涵
对于 interval censor 的情况怎么写SAS code呀?问一个SAS Life-table的问题 !
同时有interval censoring和right censoring应该怎么用SAS做?问个censored的survival data概念
问一个SAS lifereg的问题!这是抄袭吗
问个R function Survfit 的问题survreg vs coxph
About the model adequacy test on Parametric survival analysis包子贴:问一个COX MODEL+TIME DEPENDENT COVARIATE的问题
该用cox regression model还是gee model?survival 中关于censoring的问题
相关话题的讨论汇总
话题: lifereg话题: survreg话题: number话题: values
进入Statistics版参与讨论
1 (共1页)
y*****w
发帖数: 1350
1
It seems survreg() in R and PROC LIFEREG in SAS run the same type of
survival analysis. However, when I ran both of them on a survival data, I
got different results. Both were set as exponential distribution, and have
right censored data. See below. Could anybody tell me why the results are
different? Did I miss specifying any important parameters in R? Thanks!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The R code:
survFit <- survreg(Surv(time, event, type="right") ~ female, data=data1,
dist="exponential", x = TRUE)
summary(survFit)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The SAS code:
proc lifereg data=data1;
model time*event(0)=female / dist=exponential;
run;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The R output:
Call:
survreg(formula = Surv(time, event, type = "right") ~ female, data = data1,
dist = "exponential",
x = TRUE)
Value Std. Error z p
(Intercept) 6.8872 0.577 11.9290 8.36e-33
femaleYes -0.0435 0.764 -0.0569 9.55e-01
Scale fixed at 1
Exponential distribution
Loglik(model)= -55 Loglik(intercept only)= -55
Chisq= 0 on 1 degrees of freedom, p= 0.95
Number of Newton-Raphson Iterations: 5
n= 24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The SAS output:
The LIFEREG Procedure
Model Information
Data Set WORK.DATA1
Dependent Variable Log(time)
Censoring Variable event
Censoring Value(s) 0
Number of Observations 24
Noncensored Values 7
Right Censored Values 17
Left Censored Values 0
Interval Censored Values 0
Name of Distribution Exponential
Log Likelihood -21.97257342

Number of Observations Read 24
Number of Observations Used 24
Fit Statistics
-2 Log Likelihood 43.945
AIC (smaller is better) 47.945
AICC (smaller is better) 48.517
BIC (smaller is better) 50.301
Algorithm converged.
Type III Analysis of Effects
Wald
Effect DF Chi-Square Pr > ChiSq
female 1 0.0032 0.9546
Analysis of Maximum Likelihood Parameter Estimates
Standard 95% Confidence Chi- Pr >
Parameter DF Estimate Error Limits Square ChiSq
Intercept 1 6.8655 0.3819 6.1170 7.6140 323.21 <.0001
female 1 -0.0217 0.3819 -0.7702 0.7267 0.00 0.9546
Scale 0 1.0000 0.0000 1.0000 1.0000
Weibull Shape 0 1.0000 0.0000 1.0000 1.0000
Lagrange Multiplier Statistics
Parameter Chi-Square Pr > ChiSq
Scale 0.0109 0.9168
1 (共1页)
进入Statistics版参与讨论
相关主题
survival 中关于censoring的问题问一个SAS lifereg的问题!
请问有没有R package可以处理censored data with non-constant censor level的?问个R function Survfit 的问题
请教HAZARD MODEL的sas codeAbout the model adequacy test on Parametric survival analysis
censored observation 在hazard model里面是怎么处理的?该用cox regression model还是gee model?
proc lifereg,distribution selection请教个用SAS lifereg interval-censored survival analysis后作图的问题
如何SIMULATE CENSORING PROPROTION?包子求助Survival问题,很菜,请大家包涵
对于 interval censor 的情况怎么写SAS code呀?问一个SAS Life-table的问题 !
同时有interval censoring和right censoring应该怎么用SAS做?问个censored的survival data概念
相关话题的讨论汇总
话题: lifereg话题: survreg话题: number话题: values