predict.survreg_map: Predict method for 'survreg_map'

Description Usage Arguments Value

Description

Predict method for 'survreg_map'

Usage

1
2
3
## S3 method for class 'survreg_map'
predict(object, newdata = NULL, times, starts = NULL,
  type = "survival", na.action = na.pass, ...)

Arguments

object

'survreg_map' object

newdata

A data.frame, optional

times

Only required if type != 'parameters. A vector of times with length 1 or nrow(newdata)

starts

Optional, for type = 'survival' only. A vector of start/truncation times with length 1 or nrow(newdata). Survival times will be conditional up to survival at this point.

type

Type of prediction. Can be predicted 'parameters' of the distribution for each row, or 'survival' probabilities (at 'times', given 'starts').

na.action

Function for dealing with NAs

...

Ignored

Value

A matrix if type = 'parameters', or a vector if type = 'survival'.


jwdink/survbayes documentation built on May 4, 2019, 4:23 p.m.