Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: nlcom after two different maximum likelihood

From   Beatrice Crozza <>
To   statalist <>
Subject   st: nlcom after two different maximum likelihood
Date   Fri, 30 Jul 2010 13:00:34 +0100

Dear All,

I used nlcom to test a no linear combination of parameters after
maximum likelihood, to see if they are statistically different.

I did in this way, following the example in Stata help and everything is fine:

nlcom (Eq1: ( [a]_cons)*([x1]_cons)/(([a]_cons)*([x1]_cons)+(1-([x1]_cons))*[z]_cons))

test _b[Eq1] = _b[Eq2]

Now  I want to calculate nlcom for Eq1 after a particular maximum
likelihood and then, after a different maximum likelihood, Eq2 hence
do the test. I do not change the database, it is always the same for
both cases.

so, after the first maximum likelihood, I did:
nlcom (Eq1: ( [a]_cons)*([x1]_cons)/(([a]_cons)*([x1]_cons)+(1-([x1]_cons))*[z]_cons)),

After the second:

But when I do:

test _b[Eq1] = _b[Eq2]

I receive the error message that Eq1does not exist.

What I am doing wrong? Could you please help me?

Thank you very  much.

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index