predict-methods function

Methods for Function predict

Methods for Function predict

Methods for function predict methods

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

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()

Returns

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

Methods

  • list("signature(object = "ANY")"): Default predict functions
  • list("signature(object = "SaemixObject")"): Computes predictions using the results of an SAEM fit
  • Maintainer: Emmanuelle Comets
  • License: GPL (>= 2)
  • Last published: 2024-03-05

Useful links