gmfamm_predict {gmfamm} | R Documentation |
Prediction of Generalized Multivariate Functional Additive Mixed model
Description
Note: FPC basis has to be evaluated for newdata before the predict function.
Usage
gmfamm_predict(
object,
newdata,
model = NULL,
term = NULL,
match.names = TRUE,
intercept = TRUE,
type = c("link", "parameter"),
compress = TRUE,
FUN = function(x) {
mean(x, na.rm = TRUE)
},
trans = NULL,
what = c("samples", "parameters"),
nsamps = NULL,
verbose = FALSE,
drop = TRUE,
cores = NULL,
chunks = 1,
...
)
Arguments
object |
bamlss-model object to be predicted. |
newdata |
Dataset for which to create predictions. Not needed for conditional survival probabilities. |
model |
Character or integer, specifies the model for which predictions should be computed. |
term |
Character or integer, specifies the model terms for which predictions are required.
Note that, e.g., |
match.names |
Should partial string matching be used to select the |
intercept |
Should the intercept be included? |
type |
Character string indicating which type of predictions to compute.
|
compress |
TRUE if the |
FUN |
A function that should be applied on the samples of predictors or
parameters, depending on argument |
trans |
A transformer function or named list of transformer functions that computes
transformed predictions. If |
what |
Predictions can be computed from samples or estimated parameters of optimizer functions. If no samples are available the default is to use estimated parameters. |
nsamps |
If the fitted |
verbose |
Print information during runtime of the algorithm. |
drop |
If predictions for only one |
cores |
Specifies the number of cores that should be used for
prediction. Note that this functionality is based on the
|
chunks |
Should computations be split into |
... |
Currently not used. |
Details
Functionality of some arguments are restricted.