predict.mlwinfitMCMC: Returns the predicted data from "mlwinfitMCMC" objects.

View source: R/mlwinfitMCMC.R

predict.mlwinfitMCMCR Documentation

Returns the predicted data from "mlwinfitMCMC" objects.

Description

Returns the predicted data from "mlwinfitMCMC" objects.

Usage

## S3 method for class 'mlwinfitMCMC'
predict(
  object,
  newdata = NULL,
  params = NULL,
  type = "link",
  se.fit = FALSE,
  terms = NULL,
  ...
)

Arguments

object

An mlwinfitMCMC-class object.

newdata

data frame for which to evaluate predictions

params

a character vector specifying the parameters to use in evaluating predictions. If NULL, names(object[["FP"]]) is used by default.

type

when this has the value "link" (default) the linear predictor is returned. When type="terms" each component of the linear predictor is returned seperately. When type="response" predictions on the scale of the response are returned.

se.fit

logical. When this is TRUE (not default) standard error estimates are returned for each prediction.

terms

if type="terms", which terms (default is all terms), a character vector.

...

Other arguments

See Also

predict


R2MLwiN documentation built on May 29, 2024, 2:10 a.m.