This bug bites when one tries to convert to data frame a markov_msm object returned by the standardise() function, but only ifnewdata passed to standardise() has 1 column.
Error in `[.default`(x$newdata, as.numeric(out$obs), , drop = FALSE) :
incorrect number of dimensions
The error seems to be due to the class of the object x$newdata <- x$newdata[0, ] returned by standardise(), which for a 1-column data frame is:
Thank you, Mark, for this great R package!
This bug bites when one tries to convert to data frame a
markov_msm
object returned by thestandardise()
function, but only ifnewdata
passed tostandardise()
has 1 column.The error seems to be due to the class of the object
x$newdata <- x$newdata[0, ]
returned bystandardise()
, which for a 1-column data frame is:while for data frames with >1 column, is:
Reproducible example:
rstpm2
version 1.5.3, R version 4.2.0