Predictions for a new dataset
saemixpredict.newdata(
saemixObject,
saemix.newdata,
type = c("ipred", "ypred", "ppred", "icpred"),
nsamp = 1
)
an SaemixObject from a fitted run
a dataframe containing the new data. The dataframe must contain the same information as the original dataset (colunm names, etc...)
one or several of "ipred" (individual predictions using the MAP estimates), "ypred" (population predictions obtained using the population parameters f(E(theta))), "ppred" (mean of the population predictions (E(f(theta)))), "icpred" (individual predictions using the conditional mean estimates)
an integer, ignored for other types than icpred; if icpred, returns both the mean of the conditional distribution and nsamp samples, with the corresponding predictions. Defaults to 1.
a list with two components
The function uses estimateMeanParameters.newdata() to set the population estimates for the individual parameters taking into account the individual covariates and doses, and estimateIndividualParameters.newdata() to derive individual estimates by computing the mean of the conditional distributions (type="icpred") or the MAP estimate (type="ipred")
Warning: this function is currently under development and the output may change in future versions of the package to conform to the usual predict functions.