muhaz_tidiers {broom} | R Documentation |
These methods tidy the output of muhaz
objects as returned by the
muhaz
function, which provides kernel based
non-parametric hazard rate estimators.
## S3 method for class 'muhaz' tidy(x, ...) ## S3 method for class 'muhaz' glance(x, ...)
x |
|
... |
extra arguments (not used) |
The "augment" method is not useful and therefore not
available for muhaz
objects.
All tidying methods return a data.frame without rownames, whose structure depends on the method chosen.
tidy.muhaz
returns a tibble containing two columns:
time
at which the hazard rate was estimated and estimate
.
glance.muhaz
returns a one-row data.frame with the columns
nobs |
Number of observations used for estimation |
min.time |
The minimum observed event or censoring time |
max.time |
The maximum observed event or censoring time |
min.harzard |
Minimal estimated hazard |
max.hazard |
Maximal estimated hazard |
if (require("muhaz", quietly = TRUE)) { data(ovarian, package="survival") x <- muhaz(ovarian$futime, ovarian$fustat) tidy(x) glance(x) }