Open adibender opened 4 years ago
before a major rewrite, we should once more think more generally about the interface:
library(Epi) data("ebmt3", package = "mstate") bmt <- Lexis(exit = list(tft = rfstime/365.25), exit.status = factor(rfsstat, labels = c("Tx", "RD")), data = ebmt3) plot(brmt)
We need some way to specify a graph. For example, figure below from "Using Lexis Objects for Multi-State Models in R":
How to do this using formula specifications? Or go different route?
# using Formula package? form = RD ~ Tx| PR~Tx| RD ~PR ~ lin_pred1|lin_pred2|lin_pred3
maybe its best to create a set of input - output data set, which would make it easier to think about the interface
before a major rewrite, we should once more think more generally about the interface:
We need some way to specify a graph. For example, figure below from "Using Lexis Objects for Multi-State Models in R":
How to do this using formula specifications? Or go different route?