Closed jmpsteen closed 7 years ago
This is now fixed by the internal wrapFUN
function which constructs an adapted model.frame
(including special terms) for vgam
objects in order to make predictions (for observations in extended datasets) from either exposure (xFit
argument in neModel
), mediator (neWeight
) or imputation (neImpute
) models.
Using the
vgam
function with special terms such ass()
in itsformula
argument, for instance, in the examples below, throws an error.