Function to predict and plot the estimated transition probabilities (and confidence intervals).
P.pred(object, newdata, get.CI = TRUE,
n.sim.CI = 1000, prob.lev = 0.05,
plot.P = FALSE, which.plots = NULL,
rug = FALSE, params.0 = NULL, ...)Estimated transition probabilities (and confidence intervals).
Predicted transition probability matrix corresponding to the time horizon specified in newdata. This is a nstates x nstates matrix.
Matrix containing the lower bounds of the confidence intervals for the predicted transition probability matrix.
Matrix containing the upper bounds of the confidence intervals for the predicted transition probability matrix.
List of predicted transition probability matrices computed at each time point specified in newdata. This is a nstates x nstates x n.pred array, where n.pred is the number of rows in newdata.
List of matrices containing the lower bounds of the confidence intervals for each predicted transition probability matrix in P.hist..
List of matrices containing the upper bounds of the confidence intervals for each predicted transition probability matrix in P.hist.
Full design matrix corresponding to the newdata provided.
List of transition probability matrices simulated to obtain the confidence intervals at each time point from newdata. May be useful to quickly obtain intervals for a different confidence level.
Fitted model object.
Dataframe containing the profile for which one wished to obtain the predicted transition probabilities.
Whether to compute the confidence intervals.
Number of simulations to be used for confidence intervals computation.
Probability level of confidence intervals.
Whether to output plots of transition probabilities.
Number between 1 and the maximum number of non-null transition probabilities. This can be used if only some plots are to be plotted.
Whether to include a rugplot of the observed transition times.
Parameter value at which the transition probability matrix needs to be computed. By default this is NULL and the MLE found in the fitted model object object is used. If both a fitted model and a manually inputted parameters vector are provided, the former will be ignored and the P matrix will be computed at the params.0 value.
Other graphical arguments.
fmsm