summary.TPidm {TP.idm} | R Documentation |
Summary method for an object of class ‘TPidm’.
## S3 method for class 'TPidm' summary(object, ...)
object |
An object of class ‘TPidm’. |
... |
Further arguments to print. |
A data.frame is returned with the following variables:
transition |
The initial and final states “i j” for each particular transition. |
probs |
The transition probabilities P_{ij}(s,t). |
The summary function prints the method used, the user-supplied times s and t, the possible transitions, the estimated transition probabilities and, optionally, confidence limits and variances.
If cov
is specified, the summary function provides the transition probabilities P_{ij}(s,t) for each level of covariate.
data(colonTP) # create a TPidm object with s = 365, t = 1095, cov = "rx", # CI = FALSE and method = "NM" (default): nm365cov <- TPidm(colonTP, s = 365, t = 1095, cov = "rx", CI=FALSE) summary(nm365cov) # summarizing the results