bootstrap is a generic function for generating bootstrap replicates of the parameters of a fitted statistical model.

bootstrap(object, B, ...)

# S3 method for partsurvfit
bootstrap(object, B, max_errors = 0, silent = FALSE, ...)

Arguments

object

A statistical model.

B

Number of bootstrap replications.

...

Further arguments passed to or from other methods. Currently unused.

max_errors

Maximum number of errors that are allowed when fitting statistical models during the bootstrap procedure. This argument may be useful if, for instance, the model fails to converge during some bootstrap replications. Default is 0.

silent

Logical indicating whether error messages should be suppressed. Passed to the silent argument of try().

Value

Sampled values of the parameters.