Closed sdaza closed 4 years ago
Thanks for your great package.
The output of the function msprep2 is not class msdata so cannot be directly used as input for functions such as events (mstate package).
msprep2
msdata
events
mstate
Just adding like the code below will solve the problem:
output = as.data.frame(output) attr(output, "trans") = tmat class(output) = c("msdata","data.frame")
Thanks for bringing this to my attention, I'll have a look at this and see if it's a feature worth adding.
This feature has been added in release 1.2.3 which is now on CRAN.
Thanks for your great package.
The output of the function
msprep2
is not classmsdata
so cannot be directly used as input for functions such asevents
(mstate
package).Just adding like the code below will solve the problem: