Displaying 4 results from an estimated 4 matches for "stset".
Did you mean:
sset
2009 May 18
1
discrepancies between stata and r for a cox regression
...nd attached the file leukemia.dta I used (Stata)
Here are the codes for R
library(foreign)
leukemia<-read.dta("leukemia.dta")
library(survival)
res <- coxph(Surv(TIME, STATUS)~TREAT, data=leukemia)
summary(res)
and here the codes for for stata
use "leukemia.dta",clear
stset TIME, failure(STATUS==1)
stcox TREAT
SPSS and EPIinfo give the same HR than Stata
I tried with an other database without any problem
What would be the problem??? I changed of pc and versions of R (2.81 & 2.9.0) without any change. The means are the same for the two packages.
I saw a few pos...
2008 Apr 28
1
Survival Regression with multiple events per subject
Dear R users!
I want to process a maximum likelihood estimation for a parametric
regression survival time model with multiple events per subject.
the STATA command for this survival regression is:
use survreg
stset failure(exercise), id(optionid)
local regressors itm posret negret
streg `regressors', distribution(weibull)
explanation:
stset declares data to be survival-time data;
exercise is the indicator variable, which shows if the subject is dead or
alive;
optionid is the multiple-record ID variable w...
2004 May 10
1
Explaining Survival difference between Stata and R
...aset
> write.dta(dat3,"cleanBasel.dta")
Warning message:
Abbreviating variable names in: write.dta(dat3, "cleanBasel.dta")
Here's the Stata output:
. use "/home/pauljohn/ps/ps909/AdvancedRegression/duration_2/cleanBasel.dta"
(Written by R. )
. stset yrs2, failure (ratify)
failure event: ratify != 0 & ratify < .
obs. time interval: (0, yrs2]
exit on or before: failure
----------------------------------------------------------------------------
> --
21 total obs.
0 exclusions
---------------------------...
2012 Jul 06
4
differences between survival models between STATA and R
Dear Community,
I have been using two types of survival programs to analyse a data set.
The first one is an R function called aftreg. The second one an STATA
function called streg.
Both of them include the same analyisis with a weibull distribution. Yet,
results are very different.
Shouldn't the results be the same?
Kind regards,
J
--
View this message in context: