search for: kindex

Displaying 2 results from an estimated 2 matches for "kindex".

Did you mean: index
2006 Jun 29
2
help with coxme
Hi there, I have a question on fitting data by coxme. In particular I want to fit a random intercept and random slope cox model. Using the rats dataset as an example, I generated another covariate x2 and want to specify a random slope for x2. Here is my code: x2=matrix(rep(runif(50), 3), 50, 3) x2=as.vector(t(x2)) rats2=cbind(rats, x2) But when I used the coxme function as follows, it gave
2006 Mar 30
1
Random Coefficients using coxme
...on using coxme from the Kinship package? For example, using lmer from the lme4 package, I can model V1 and V2 as a fixed & random coefficient: Mod1=lmer(y ~ V1 + V2 + V3 + V4 + (1 + V1 + V2|GROUP)) Can I do something like this, though correctly without getting the error ("Error in max(kindex) : object "kindex" not found")? Mod2=coxme(Surv(YDAYS, Y) ~ V1 + V2 + V3 + V4, data=ds1, random=~1 + V1 + V2|GROUP The GROUP variable is a census tract, while V1 & V2 are individual-level characteristics of people. Thanks in advance. Mark Powers mark.powers at illinois.gov