predict.tdmorefit: Predict new data using the current model

Description Usage Arguments Value

View source: R/ebe.R

Description

Predict new data using the current model

Usage

1
2
3
4
5
## S3 method for class 'tdmorefit'
predict(object, newdata = NULL, regimen = NULL,
  parameters = NULL, covariates = NULL, se.fit = FALSE,
  level = 0.95, mc.maxpts = 100, ip.maxpts = 100,
  .progress = "none", .parallel = FALSE, ...)

Arguments

object

A tdmorefit object

newdata

A data.frame with new data and the columns to predict, or a numeric vector to specify times, and predict all model output or NULL to interpolate between 0 and the maximum known times

regimen

Treatment regimen

parameters

Set parameters. If missing, or if only part of the parameters are specified, the other parameters are taken from the tdmorefit object

covariates

the model covariates, named vector, or data.frame with column 'TIME', and at least TIME 0

se.fit

TRUE to provide a confidence interval on the prediction, adding columns xxx.median, xxx.upper and xxx.lower

level

The confidence interval, or NA to return all mc.maxpts results

mc.maxpts

Maximum number of points to sample in Monte Carlo simulation

ip.maxpts

Maximum number of points to interpolate if newdata is not given

.progress

see plyr::ddply

.parallel

see plyr::ddply

...

ignored

Value

A data.frame


tdmore-dev/tdmore documentation built on Nov. 15, 2018, 9:45 p.m.