Closed rfaelens closed 3 years ago
Some small things left to do:
estimate
already contain the population theta's. If so, these cannot be adapted anymore.plot
also correctly shows the population distibutions. (workaround: ipred$tdmore <- tdmoreBaseModel
)estimate.tdmorefit
work again
Basic implementation of model-predictive control. Requirements:
mpc(tdmore, theta, suffix)
theta
is a named vector with the initial values. We should check whether these are covariates intdmore
.suffix
is a suffix to add to the theta names. These should be outputs in thetdmore
model. The tdmore model is adapted to have all parameters as IOV.estimate.tdmoreMpc
performs an estimation using MPC. We do afor
-loop going over all occasions, and performing an estimate each time. We adapt thecovariates
to include the updated THETA values. At the end, we adapt the covariates one last time so future predictions follow ipred.estimate.tdmoreMpc
ignores these.fit
parameter, and does not calculatevcov