Dear Stata-list visitors!
I have a question about how to turn to the coefficient matrix e(b). I use a max-likelihood model that uses explanatory variables b1, b2 and b3 not only in the command ml model, but also inside the model, in intermediate calculations. The model has a variable scale (among others), where scale = b1+b2+b3. So, these three coefficients are the same coefficients, the model is made to estimate for. And I need them (their initial values) already in the start of the first iteration.
I tested two variants to enter the values of explanatory variables, where b1 = `b '[1.1] and b1 = _b [b1] as an example. For second version I used another similar (but simpler) model, which gives me a matrix e(b) for initial values. But I was told that the second version is incorrect, because in the second case these coefficients stay constant, until to the last iteration. These variants produce very different results, with the result of the second variant being more realistic.
The variables b1, b2 and b3 should be coded so that they are the same variables as in the coefficient matrix e(b) and in the command ml model and ml init. And these variables need initial values to make the model work at all. Could anyone recommend the appropriate code?
Related Posts with Turning to the coefficient matrix e(b)
Self constructed variable (CTT_MDDR) related to time/age of wine that switches from negative to positive: HOW TO IMPLEMENT?Dear all! My research is about the price behavior of investment grade wines. Of each wine, critics …
Is poisson QML fixed effect estimation appropriate for non-negative continuous variable in event-study design?Dear Stata users, I'm looking at the effect of coauthorship with a star scientist on the individual…
Problem with lag variableDear Statalists, how do I generate a lag variable which is the same for all years. Code: * Example…
doLCA plugin PSUI am currently using the doLCA plugin list to estimate an unconditional RMLCA model. However, I have…
calculating dissim index and storing results.Hi. I am using Ben Jann’s Duncan SSC package to calculate a dissimilarity index for each month and …
Subscribe to:
Post Comments (Atom)
0 Response to Turning to the coefficient matrix e(b)
Post a Comment