Learn R Programming

saemix (version 3.3)

predict-methods: Methods for Function predict

Description

Methods for function predict

Usage

# S4 method for SaemixObject
predict(
  object,
  newdata = NULL,
  type = c("ipred", "ypred", "ppred", "icpred"),
  se.fit = FALSE,
  ...
)

Value

a vector or a dataframe (if more than one type) with the corresponding predictions for each observation in the dataframe

Arguments

object

an SaemixObject

newdata

an optional dataframe for which predictions are desired. If newdata is given, it must contain the predictors needed for the model in object

type

the type of predictions (ipred= individual, ppred=population predictions obtained with the population estimates, ypred=mean of the population predictions, icpred=conditional predictions). With newdata, individual parameters can be estimated if the new data contains observations; otherwise, predictions correspond to the population predictions ppred, and type is ignored.

se.fit

whether the SE are to be taken into account in the model predictions

...

additional arguments passed on to fitted()

Methods

list("signature(object = \"ANY\")")

Default predict functions

list("signature(object = \"SaemixObject\")")

Computes predictions using the results of an SAEM fit