
82 Appendix A3 Modelbase and OxPack
• When a model class is selected from the Model menu.
Modelbase::ReceiveModel
virtual ReceiveModel();
Description
Called by OxPack as part of estimation, after ReciveData and prior to
Estimate(). The default implementation extracts the model formulation
from OxPack, also see OxPackGetData(). For example, in Modelbase:
// get selection of database variables
Select(Y_VAR, "OxPackGetData"("SelGroup", Y_VAR));
Select(X_VAR, "OxPackGetData"("SelGroup", X_VAR));
ForceYlag(Y_VAR);
// get selected sample
decl freq, year1, period1, year2, period2;
[year1, period1, year2, period2] = "OxPackGetData"("SelSample");
ForceSelSample(year1, period1, year2, period2);
decl imethod; // get method
[imethod, m_cTforc, m_bRecursive] = "OxPackGetData"("Method");
SetMethod(imethod);
Modelbase::SaveOptions
virtual SaveOptions()
No return value.
Description
Called by OxPack to save persistent settings when a package is closed (to load a
different package, or when OxPack is exiting). For example, in Modelbase:
decl deps1, deps2, iprint, iitmax, bcompact;
[iitmax, iprint, bcompact] = GetMaxControl();
[deps1, deps2] = GetMaxControlEps();
"OxPackWriteProfileInt"("ModelBase", "itmax", iitmax);
"OxPackWriteProfileInt"("ModelBase", "iprint", iprint);
"OxPackWriteProfileInt"("ModelBase", "bcompact", bcompact);
"OxPackWriteProfileDouble"("ModelBase", "deps1", deps1);
"OxPackWriteProfileDouble"("ModelBase", "deps2", deps2);
Modelbase::SendDialog
virtual SendDialog(const sDialog);
sDialog in: string, dialog name
Return value
Returns an array of arrays as described for the asDialog argument under
OxPackDialog. Returns 0 if the dialog is not implemented; in this case it is pre-
ferred to return Modelbase::SendDialog(sDialog) to allow the Modelbase
default.
Komentarze do niniejszej Instrukcji