jgellar / pcox

Penalized Cox regression models
1 stars 0 forks source link

pcox_stable: "Error in object$pcox$smoothdata[[1]] : subscript out of bounds" #33

Closed fabian-s closed 9 years ago

fabian-s commented 9 years ago
> est1.1 <- coef(fit1.1)
Error in object$pcox$smoothdata[[1]] : subscript out of bounds
[...]

> est4.1 <- coef(fit4.1)
Error in object$pcox$smoothdata[[1]] : subscript out of bounds
[...]

> est4.3 <- coef(fit4.3)
Error in object$pcox$smoothdata[[1]] : subscript out of bounds

I assume this has something to do with the recent changes in the shape of the return object? Let's please try to keep pcox_stable.R working, so that we don't keep on re-introducing bugs into the package....

Results from

p1 <- ggplot(est2.3a[[1]], aes(t, value)) + geom_line(colour="red", size=2) +
  geom_line(aes(y=sin(2*pi*t/J)), size=2) + ylim(c(-1.5,1.5))
p2 <- ggplot(est2.3a[[2]], aes(t, value)) + geom_line(colour="red", size=2) +
  geom_line(aes(y=cos(2*pi*t/J)), size=2) + ylim(c(-1.5,1.5))
p  <- arrangeGrob(p1,p2,nrow=1)
p

look weird to me as well -- is this working as intended?