- object
A beezdemand_nlme object.
- newdata
Optional data frame for which to make predictions.
Must contain x_var and all factors specified in the original model.
If group-level predictions are desired (level=1), the id_var column from
the original fit must also be present in newdata and its levels should
correspond to those in the original data for meaningful random effect application.
If NULL, predictions are made for the data used in fitting the model.
- type
One of "response" (default), "link", "population", or "individual".
"population" and "individual" are aliases that set level to 0 or 1,
respectively.
- level
Integer, prediction level for nlme::predict.nlme():
0: Population predictions (based on fixed effects only).
1 (or higher, up to number of grouping levels in model): Group-specific
predictions (fixed effects + random effects for the specified id_var level).
Default is 0.
- inv_fun
Optional function to inverse-transform the predictions.
Example: If y_var was log10-transformed during fitting and equation_form
like "zben" produces predictions on that log10 scale, inv_fun = function(x) 10^x
would convert predictions back to the original consumption scale.
If equation_form was "simplified" (which models raw Y), inv_fun might be identity
or not needed if predictions are already on the desired scale.
- se.fit
Logical; if TRUE, includes a .se.fit column (currently NA
because standard errors are not implemented for beezdemand_nlme predictions).
- interval
One of "none" (default) or "confidence". When requested,
.lower/.upper are returned as NA.
- interval_level
Confidence level when interval = "confidence". Currently
used only for validation.
- ...
Additional arguments passed to nlme::predict.nlme().