Skip to content

Application of coxme

2 messages · davidcostantini at libero.it, Jonas Klasen

#
Dear All
I am trying to use the coxme function to compare survival among 6 experimental 
groups.
I have a fixed factor (group), a random factor (brood), and a censoring 
variable (0 = still alive;
1 = dead). My response variable is the age of the dead individual or of the 
individual still
alive at the end of the experiment.
I have tried to use this function:

coxme (Surv(time,status) ~ group, random=~1|nest, data=females)

Time would be the age, while status is the censoring variable.
R gives me an output and says that the random argument of coxme is 
depreciated.
I wonder if anyone of you may let me know if this function is correct and why
the random factor is depreciated. 

Cheers
David
variance
variation
blocks
a
has
returning
get
#
Hi David,
coxme now uses the lme4 syntax or you have to specify fixed and random:

coxme (Surv(time,status) ~ group + (1|nest), data=females) # or

coxme (fixed=Surv(time,status) ~ group, random=~1|nest, data=females)

Jonas
On Wed 05 Jun 2013 12:16:18 PM CEST, davidcostantini at libero.it wrote:
--
__________________________________________________

 Jonas Klasen
 PhD student
 Genome Plasticity and Computational Genetics
 Max Planck Institute for Plant Breeding Research