Learn R Programming

survPresmooth (version 1.1-12)

print.survPresmooth: Print a survPresmooth Object

Description

Print method for `survPresmooth' objects.

Usage

# S3 method for survPresmooth
print(x, long = FALSE, more = NULL,
...)

Arguments

x

An object of class 'survPresmooth'.

long

A logical value. If TRUE the entire estimated curve is printed; if FALSE, the default, only the head of the estimated curve is printed if it consists of more than 100 values.

more

A character vector specifying the names of additional components of the x object that will be printed. The valid values for the components of the character vector are "data", "q.weight", "mise", "grid.pil", "pilot.bw", "grid.bw" and "p.hat". The default is NULL.

...

Optional arguments for the default method (i.e., print.default) of the print generic function.

Author

Ignacio Lopez-de-Ullibarri [aut, cre], Maria Amalia Jacome [aut]

See Also

presmooth

Examples

Run this code
if (FALSE) {
## Printing an object of class 'survPresmooth' with 4 digits, including
## in the output the value of the pilot bandwidth and the estimated p
## function

print(presmooth(t, delta, pscheck), more = c("pilot.bw", "p.hat"),
digits = 4)
}

Run the code above in your browser using DataLab