. ml check
Test 1: Calling mynormal to check if it computes log likelihood and
does not alter coefficient vector...
Passed.
Test 2: Calling mynormal again to check if the same log likelihood value
is returned...
Passed.
------------------------------------------------------------------------------
The initial values are not feasible. This may be because the initial values
have been chosen poorly or because there is an error in mynormal and it
always returns missing no matter what the parameter values.
Stata is going to use ml search to find a feasible set of initial values.
If mynormal is broken, this will not work and you will have to press Break
to make ml search stop.
Searching...
initial: log likelihood = -<inf> (could not be evaluated)
searching for feasible values ...+
feasible: log likelihood = -6959.1055
improving initial values ..........
improve: log likelihood = -6959.1055
rescaling entire vector +.
rescale: log likelihood = -5851.64
rescaling equations +++++.....
rescaling equations ......
rescale eq: log likelihood = -4990.9165
restarting tests...
------------------------------------------------------------------------------
Test 1: Calling mynormal to check if it computes log likelihood and
does not alter coefficient vector...
Passed.
Test 2: Calling mynormal again to check if the same log likelihood value
is returned...
Passed.
Test 3: Calling mynormal to check if 1st derivatives are computed...
test not relevant for method lf.
Test 4: Calling mynormal again to check if the same 1st derivatives are
returned...
test not relevant for method lf.
Test 5: Calling mynormal to check if 2nd derivatives are computed...
test not relevant for method lf.
Test 6: Calling mynormal again to check if the same 2nd derivatives are
returned...
test not relevant for method lf.
------------------------------------------------------------------------------
Searching for alternate values for the coefficient vector to verify that
mynormal returns different results when fed a different coefficient vector:
Searching...
initial: log likelihood = -<inf> (could not be evaluated)
searching for feasible values .+
feasible: log likelihood = -6554.2216
improving initial values ..........
improve: log likelihood = -6554.2216
continuing with tests...
------------------------------------------------------------------------------
Test 7: Calling mynormal to check log likelihood at the new values...
Passed.
Test 8: Calling mynormal requesting 1st derivatives at the new values...
test not relevant for method lf.
Test 9: Calling mynormal requesting 2nd derivatives at the new values...
test not relevant for method lf.
------------------------------------------------------------------------------
mynormal HAS PASSED ALL TESTS
------------------------------------------------------------------------------
Test 10: Does mynormal produce unanticipated output?
This is a minor issue. Stata has been running mynormal with all
output suppressed. This time Stata will not suppress the output.
If you see any unanticipated output, you need to place quietly in
front of some of the commands in mynormal.
-------------------------------------------------------------- begin execution
---------------------------------------------------------------- end execution
. ml max
initial: log likelihood = -6554.2216
rescale: log likelihood = -5437.9889
rescale eq: log likelihood = -5059.2758
could not calculate numerical derivatives
flat or discontinuous region encountered
r(430);
还有那个initial 值是什么意思呢?一定要定义吗?