predict-methods: Methods for Function predict

predict-methodsR Documentation

Methods for Function predict

Description

Methods for function predict

Usage

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

Value

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


saemix documentation built on July 9, 2023, 7:43 p.m.