
94 Appendix A3 Modelbase and OxPack
Buffering(0); // stop buffering
Buffering(10); // rewind text window to marker
}
///////////////////////////////////////////////////////////////////////
// OxPack specific
BprobitEx::Buffering(const iBufferOn)
{
if (iBufferOn == 11)
"OxPackSetMarker"(TRUE);
else if (iBufferOn == 10)
"OxPackSetMarker"(FALSE);
else if (iBufferOn == 1)
"OxPackBufferOn"();
else
"OxPackBufferOff"();
}
BprobitEx::IsCrossSection()
{
return 1;
}
BprobitEx::GetModelLabel()
{
return sprint("CS(", "%2d", m_iModel, ")");
}
BprobitEx::GetMethodLabel()
{
decl asmethods = {"Logit", "Probit", "Poisson"};
return asmethods[m_iMethod];
}
BprobitEx::SendSpecials()
{
return {"Constant"};
}
BprobitEx::SendVarStatus()
{
if (m_iModelClass == MC_BINARY)
return
{{ "&Y endogenous",’Y’,STATUS_GROUP + STATUS_ENDOGENOUS, Y_VAR},
{ "&X variable", ’X’, STATUS_GROUP, X_VAR},
{ "&Weight", ’W’, STATUS_GROUP + STATUS_ONEONLY, W_VAR},
{ "&Select By", ’S’, STATUS_GROUP + STATUS_ONEONLY, SEL_VAR}
};
else
return
{{ "&Y endogenous",’Y’,STATUS_GROUP + STATUS_ENDOGENOUS, Y_VAR},
{ "&X variable", ’X’, STATUS_GROUP, X_VAR}
};
}
BprobitEx::SendMethods()
{
// here only BFGS allowed, but could add Newton, e.g.
return
Commentaires sur ces manuels