Error in x[oo, ] : subscript out of bounds

datanew1data <- list(x = cox01$x,time = datanew1c$time,
                   status = datanew1c$Y)
datanew1path <- coxpath(datanew1data)

> datanew1path <- coxpath(datanew1data)
Error in x[oo, ] : subscript out of bounds

help me,thanks guys

Hello @HAIRUI_FU ,

you give us too little information to work with.

Could I ask you to provide a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help. A reprex consists of the minimal code and data needed to recreate the issue/question you’re having. You can find instructions how to build and share one here: https://forum.posit.co/t/faq-whats-a-reproducible-example-reprex-and-how-do-i-do-one/5219

Without this information we can only guess what you are trying to do.
But you could be lucky and somebody could recognize the coxpath function (assuming that is a function from a published package) ??

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.