Hi,
I am writing a bespoke estimation that uses clogit as a base. After running clogit I modify the e(b) and e(V) matrices and use ereturn repost . If I include the option buildfvinfo when I repost the matrices, the margins postestimation command no longer works and returns "conformability error; r(503);".
I have checked this in a very straightforward setting using clogit and ologit, where I do not modify the b and V matrices but simply copy and repost them. Without the buildfvinfo option it works fine, but with it margins breaks. Any advice would be much appreciated.
Cheers,
-Alex
I am writing a bespoke estimation that uses clogit as a base. After running clogit I modify the e(b) and e(V) matrices and use ereturn repost . If I include the option buildfvinfo when I repost the matrices, the margins postestimation command no longer works and returns "conformability error; r(503);".
I have checked this in a very straightforward setting using clogit and ologit, where I do not modify the b and V matrices but simply copy and repost them. Without the buildfvinfo option it works fine, but with it margins breaks. Any advice would be much appreciated.
Cheers,
-Alex
Code:
//Test eret repost do file clear all set more off use http://www.stata-press.com/data/r13/clogitid clogit y x1 x2, group(id) margins, dydx(*) predict(pu0) eretswap margins, dydx(*) predict(pu0) end
Code:
// Program to copy and repost e(b) and e(V) program eretswap, eclass syntax [, *] mat tempb = e(b) mat tempV = e(V) eret repost b=tempb V=tempV, buildfvinfo end
Comment