predict-methods: The predict methods for EventPrediction package

Description Usage Arguments Value See Also

Description

The predict methods for EventPrediction package

Usage

1
2
3
4
5
6
7
## S4 method for signature 'FromDataResults'
predict(object, time.pred = NULL,
  event.pred = NULL)

## S4 method for signature 'Study'
predict(object, time.pred = NULL, event.pred = NULL,
  step.size = 0.5)

Arguments

object

The object for which the prediction is required

time.pred

If object is a FromDataResults object then: The Dates for which the number of events are required at. This should be a vector of character strings, e.g. c("2017-10-10","2018-04-27) or NULL. If it is a Study object then this is a numeric vector of dates (in months from the start of the trial) for which the number of events are required at.

event.pred

The target number of events for which the expect time is to be predicted, should be a numeric vector

step.size

The resolution of the grid to be used to calculate the time v expected events curves

...

Additional objects

Value

The predicted values. If object is Study the result will be an AnalysisResults object. If object is a FromDataResults object it will be returned with event.pred.data and/or time.pred.data slots updated

See Also

FromDataResults-class AnalysisResults-class


scientific-computing-solutions/eventPrediction documentation built on May 29, 2019, 3:44 p.m.