plot.survHE: Plot survival curves for the models fitted using 'fit.models'

Description Usage Arguments Note Author(s) References See Also Examples

View source: R/plot.survHE.R

Description

Plots the results of model fit.

Usage

1
2
## S3 method for class 'survHE'
plot(...)

Arguments

...

Must include at least one result object saved as the call to the fit.models function. Other possibilities are additional (mainly graphical) options. These are: xlab = a string with the label for the x-axis (default = "time") ylab = a string with the label for the y-axis (default = "Survival") lab.trt = a (vector of) string(s) indicating the labels associated with the strata defining the different survival curves to plot. Default to the value used by the Kaplan Meier estimate given in fit.models cex.trt = factor by which the size of the font used to write the strata is resized (default = 0.8) n.risk = logical. If TRUE (defaults) writes the number at risk at different time points (as determined by the Kaplan Meier estimate) newdata = a list (of lists) providing the values for the relevant covariates If NULL, then will use the mean values for the covariates if at least one is a continuous variable, or the combination of the categorical covariates. xlim = a vector determining the limits for the x-axis colors = a vector of characters defining the colours in which to plot the different survival curves labs = a vector of characters defining the names of the models fitted add.km = TRUE (whether to also add the Kaplan Meier estimates of the data)

Note

Something will go here

Author(s)

Gianluca Baio

References

Something will go here

See Also

Something will go here

Examples

1
2
3
4
5
data(bc)

mle = fit.models(formula=Surv(recyrs,censrec)~group,data=bc,
    distr="exp",method="mle")
plot(mle)

giabaio/survHE documentation built on Dec. 2, 2017, 10:10 a.m.