Displaying 3 results from an estimated 3 matches for "qsurvreg".
Did you mean:
survreg
2011 Apr 08
1
Variance of random effects: survreg()
...nce of the random effects in the survreg() function in the survival package:
1) How can I extract the variance of the random effects after fitting a model?
For example:
set.seed(1007)
x <- runif(100)
m <- rnorm(10, mean = 1, sd =2)
mu <- rep(m, rep(10,10))
test1 <- data.frame(Time = qsurvreg(x, mean = mu, scale= 0.5, distribution = "weibull"),
Status = rep(1, 100),
Unit = gl(10,10)
)
mod1 <- survreg(Surv(Time, Status) ~ 1 + frailty.gaussian(Unit), data = test1)
> mod1
...
coef se(coef)...
2011 Apr 12
4
1 continuous non-normal variable ~ 4 factors + 1 continuous covariate (with interactions)
Hello
Im struggling on something... I have one continuous variable (A), and I need
to explain it with 4 factors, and maybe one continuous covariate.
And of course, my variable A is not normal at all (it's a duration in
seconds, whole numbers).
What can I do? I would know how do deal with it if I had one factor, maybe
two, but in that case Im really not sure what I am supposed to do to
2011 Apr 12
2
Testing equality of coefficients in coxph model
Dear all,
I'm running a coxph model of the form:
coxph(Surv(Start, End, Death.ID) ~ x1 + x2 + a1 + a2 + a3)
Within this model, I would like to compare the influence of x1 and x2 on the
hazard rate.
Specifically I am interested in testing whether the estimated coefficient
for x1 is equal (or not) to the estimated coefficient for x2.
I was thinking of using a Chow-test for this but the Chow