muhaz2 | R Documentation |
muhaz
function from the
muhaz
package.
Formula wrapper for the muhaz
function from the
muhaz
package.
muhaz2(formula, data, subset, max.time, ...)
## S3 method for class 'muhaz2'
plot(x, haz.scale=1, ylab="Hazard", ylim=NULL, log="", ...)
## S3 method for class 'muhazList'
plot(x, lty=1:5, col=1:length(x), log="", legend.args=list(), ...)
## S3 method for class 'muhaz2'
lines(x, ..., haz.scale = 1)
## S3 method for class 'muhazList'
lines(x, lty=1, col=1:length(x), ...)
## S3 method for class 'muhazList'
summary(object, ...)
## S3 method for class 'muhazList'
ggplot(data, mapping=NULL,
xlab="Time", ylab="Hazard", ...,
environment = parent.frame())
## S3 method for class 'muhazList'
as.data.frame(x, row.names, optional, ...)
## S3 method for class 'muhaz'
as.data.frame(x, row.names, optional, ...)
formula |
formula with the left-hand side being a |
data |
optional |
subset |
subset predictate for the dataset |
max.time |
maximum follow-up time for the hazards |
xlab |
graphics argument for xlab (x-axis label) |
ylab |
graphics argument for ylab (y-axis label) |
lty |
graphics argument for line type |
col |
graphics argument for line colour |
legend.args |
a list of options that are passed to the legend call. Defaults are |
haz.scale |
scale for the hazard in the plot |
row.names |
not currently used |
object |
muhazList object |
ylim |
graphics argument for the limits of the y axis |
log |
graphics argument for a log transformation of the x or y axes |
x |
muhazList or muhaz object |
environment |
*[Deprecated]* Used prior to tidy evaluation. |
optional |
not currently used |
mapping |
Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot. |
... |
other arguments |
For a single strata, this is a muhaz
object. For multiple strata, this is a muhazList
object, which includes methods for
plot(muhaz2(Surv(surv_mm, status == "Dead: cancer")~1, melanoma))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.