You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The multiplicative part sf_i * x_i only depends on the linearity of the inner part of the predictor param = f(x * beta)
and we can use score_factor and hessian_factor even if we don't have any additive residual defined.
even more general:
BetaRegression in PR #2030 has two components with two score_factor and 3 hessian_factor (hessian_factor is for 2 diagonal blocks and 1 off-diagonal block to calculate the hessian, after pre and post multiplying with the two exogs)
Except for handling two score factors, everything else is the same, we can still get the full score and hessian from the restricted model just by knowing the exogs of the full model.
However, I think, having the Hessian is not enough to get robust covariances for a robust score_test. I assume we need the sandwich form of the covariance of the score of the full model for this.
edit
It should be possible to get the sandwiches also without much changes, the function already takes optionally score and hessian.
Stata 14 manual section 20.22 is explicit about when we have one or several score_factors for the decomposition.
technical note at end lists some models where score_obs doesn't decompose into score_factors time exogs. Among them are nlogit, stcox and mixed.
Activity
josef-pkt commentedon Oct 11, 2014
The multiplicative part
sf_i * x_ionly depends on the linearity of the inner part of the predictorparam = f(x * beta)and we can use
score_factorandhessian_factoreven if we don't have any additive residual defined.even more general:
BetaRegression in PR #2030 has two components with two score_factor and 3 hessian_factor (hessian_factor is for 2 diagonal blocks and 1 off-diagonal block to calculate the hessian, after pre and post multiplying with the two exogs)
Except for handling two score factors, everything else is the same, we can still get the full score and hessian from the restricted model just by knowing the exogs of the full model.
However, I think, having the Hessian is not enough to get robust covariances for a robust score_test. I assume we need the sandwich form of the covariance of the score of the full model for this.
edit
It should be possible to get the sandwiches also without much changes, the function already takes optionally score and hessian.
josef-pkt commentedon Mar 9, 2016
Stata 14 manual section 20.22 is explicit about when we have one or several
score_factors for the decomposition.technical note at end lists some models where score_obs doesn't decompose into score_factors time exogs. Among them are nlogit, stcox and mixed.
josef-pkt commentedon May 26, 2018
see #2107 for discrete, bumped for 0.10