psa.plot: Graphical depiction of the probabilistic sensitivity analysis...

View source: R/psa.plot.R

psa.plotR Documentation

Graphical depiction of the probabilistic sensitivity analysis for the survival curves

Description

Plots the survival curves for all the PSA simulations. The function is actually deprecated - similar graphs can be obtained directly using the plot method (with options), which allows a finer depiction of the results.

Usage

psa.plot(psa, ...)

Arguments

psa

the result of the call to the function make.surv

...

Optional graphical parameters, such as:

  • xlab = label for the x-axis

  • ylab = label for the y-axis

  • col = (vector) of colours for the lines to be plotted

  • alpha = the level of transparency for the curves (default = 0.2)

Author(s)

Gianluca Baio

References

G Baio (2019). survHE: Survival analysis for health economic evaluation and cost-effectiveness modelling. Journal of Statistical Software (2020). vol 95, 14, 1-47. doi:10.18637/jss.v095.i14

See Also

make.surv, write.surv

Examples

## Not run:  
data(bc)

# Fits the same model using the 3 inference methods
mle = fit.models(formula=Surv(recyrs,censrec)~group,data=bc,
    distr="exp",method="mle")
p.mle = make.surv(mle,nsim=100)
psa.plot(p.mle)

## End(Not run)


survHE documentation built on March 31, 2023, 11:37 p.m.