---- included message ----
Dear all,
I am using "coxme" function in Kinship library to fit random treatment effect
nested within centre. I got 3 treatments (0,1,2) and 3 centres. I used following
commands, but got an error.
~1|group,varlist=list(mat1,mat2),rescale=F,pdcheck=FALSE)
Error in coxme.fit(X, Y, strats, offset, init, control, weights = weights, :
Random effects variance is not spd
Could anyone help me correcting this error?
Many thanks in advance.
Ruwanthi
------- end inclusion -----
The "build your own bdsmatrix" style in coxme is for variance structures that
are not built in, like pedigree data. Your problem is one that coxme can do
directly, so it is easier to call the routine simply:
fit <- coxme(Surv(time, status) ~ factor(treat), data=data1,
random = ~1 | centre/treat)
Terry Therneau