Q.pred {flexmsm}R Documentation

Predict and plot the transition intensities

Description

Function to predict and plot the estimated transition intensities (and confidence intervals).

Usage

Q.pred(object, newdata, get.CI = TRUE,
       n.sim.CI = 1000, prob.lev = 0.05,
       plot.Q = FALSE, which.plots = NULL,
       cond.list.2d = NULL, plot.Q.2d = FALSE,
       rug = TRUE, ...)

Arguments

object

Fitted model object.

newdata

Dataframe containing the profile for which one wished to obtain the predicted transition intensities.

get.CI

Whether to compute the confidence intervals.

n.sim.CI

Number of simulations to be used for confidence intervals computation.

prob.lev

Probability level of confidence intervals.

plot.Q

Whether to output plots of transition intensities.

which.plots

Number between 1 and the maximum number of non-null transition intensities. This can be used if only some plots are to be plotted.

cond.list.2d

Value of covariate(s) to be kept fixed in the plotting of 3D-transition intensities.

plot.Q.2d

Whether to plot 3D transition intensities (only valid if 2D-smooths are present).

rug

Whether to include a rugplot of the observed transition times.

...

Other graphical parameters.

Value

Estimated transition intensities (and confidence intervals).

Q.hist

List of predicted transition intensity 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.

Q.CI.lower

Matrix containing the lower bounds of the confidence intervals for the predicted transition intensity matrix.

Q.CI.upper

Matrix containing the upper bounds of the confidence intervals for the predicted transition intensity matrix.

full.X

Full design matrix corresponding to the newdata provided.

Q.sim.hist

List of transition intensity 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.

See Also

fmsm


[Package flexmsm version 0.1.1 Index]