predict_burgle {burgle}R Documentation

Predict for burgle methods

Description

Predict for burgle methods

Usage

## S3 method for class 'burgle_flexsurvreg'
predict(
  object,
  newdata = NA,
  original = FALSE,
  draws = 1,
  sims = 1,
  type = "lp",
  times = NULL,
  ...
)

## S3 method for class 'burgle_lm'
predict(
  object,
  newdata,
  original = FALSE,
  draws = 1,
  sims = 1,
  type = "lp",
  se = FALSE,
  ...
)

## S3 method for class 'burgle_glm'
predict(
  object,
  newdata,
  original = FALSE,
  draws = 1,
  sims = 1,
  type = "lp",
  se = FALSE,
  ...
)

## S3 method for class 'burgle_coxph'
predict(
  object,
  newdata = NA,
  original = FALSE,
  draws = 1,
  sims = 1,
  type = "lp",
  times = NULL,
  ...
)

## S3 method for class 'burgle_CauseSpecificCox'
predict(
  object,
  newdata = NULL,
  type = "lp",
  cause = 1,
  original = FALSE,
  draws = 1,
  sims = 1,
  times = NULL,
  ...
)

Arguments

object

the results of burgle_lm object

newdata

new data

original

whether or not to predict using the original model

draws

how many different models to simulate

sims

how many simulated response to draw

type

either 'lp', 'response', 'link' for glm or 'risk' if time dependent

times

if type = "risk" time for which to predict risk, if times and sims is multiple the return will be lists within lists

...

for future methods

se

whether or not to include the standard error in the simulations

cause

which cause do you want to predict

Value

either a matrix of array of new model predictions


[Package burgle version 0.1.0 Index]