Learn R Programming

BGPhazard (version 1.2.3)

PlotTheta: Plots and summarises the covariate coefficients

Description

Plots density and histogram for one or all covariate coefficients and computes summaries.

Usage

PlotTheta(M, i = 1, plot.all = TRUE, quantiles = TRUE)

Arguments

M

List. Output object generated by command CGaMRes.

i

Integer. If plot.all == FALSE, only the ith position is plot.

plot.all

Logical. If TRUE plots all p covariate coefficients.

quantiles

Logical. If TRUE returns a matrix containing mean, standar deviation and quantiles for theta.

Value

quant

Data frame. Mean, standard deviation, 0.025, 0.05, 0.5, 0.95 and 0.975 quantiles for theta.

References

- Nieto-Barajas, L. E. (2003). Discrete time Markov gamma processes and time dependent covariates in survival analysis. Bulletin of the International Statistical Institute 54th Session. Berlin. (CD-ROM).

- Nieto-Barajas, L. E. & Walker, S. G. (2002). Markov beta and gamma processes for modelling hazard rates. Scandinavian Journal of Statistics 29: 413-424.

See Also

CGaMRes

Examples

Run this code
# NOT RUN {
## Simulations may be time intensive. Be patient.

## Example 1
#  data(leukemiaFZ)
#  leukemia1 <- leukemiaFZ
#  leukemia1$wbc <- log(leukemiaFZ$wbc)
#  CGEX1 <- CGaMRes(data = leukemia1, K = 10, iterations = 10000, thpar = 10)
#  PlotTheta(CGEX1)
# }

Run the code above in your browser using DataLab