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
multivariate version is used in discrete_margins, we had brief discussion, my version is in miscmodels
one issues is how to handle different multi-dimensional use cases
Margins needs vectorized for at='all', in the basic usecase we would need only se, i.e. diagonal.
I think there should be a computational short cut to calculate only the diagonal of vectorized version.
We still need the entire covariance matrix for hypothesis test that involve more than a single effect.
I guess it's: se = (jac.dot( cov_params) * jac).sum(-1)
where jac is (nobs, k_params, k_params) or (nobs, k_effects, k_params)
a bit related: at several occasions I was looking at vectorized hessian, hessian_obs, but there wasn't any real usecase, for the final calculations only the sum or average over observations is relevant, even though hessian_obs might show up in the theory.
Activity
josef-pkt commentedon Dec 24, 2014
np.dot can handle
(nobs, k1, k2) dot (k2, k3)to give(nobs, k1, k3)most likely faster than einsumdot product for each pair by rows (first index) using einsum (regular dot won't work)
josef-pkt commentedon Dec 24, 2014
a bit related: at several occasions I was looking at vectorized hessian, hessian_obs, but there wasn't any real usecase, for the final calculations only the sum or average over observations is relevant, even though hessian_obs might show up in the theory.