.Hello everyone, I am learning the MLE model and practicing through the book examples using Stata12. Even applying the given example of the book is continuously showing this error. Please suggest me the reason of this error. I am stuck with this problem and unable to proceed. ml check description is also mentioned below for clarificaton
program myprobit_lf
1. version 11
2. args lnfj xb
3. quietly replace ‘lnfj’ = ln(normal( ‘xb’)) if $ML_y1 == 1
4. quietly replace ‘lnfj’ = ln(normal(-‘xb’)) if $ML_y1 == 0
5. end
ml check
Test 1: Calling myprobit_lf to check if it computes log likelihood and
does not alter coefficient vector...
FAILED; myprobit_lf returned error 198.
Here is a trace of its execution:
------------------------------------------------------------------------------
-> myprobit_lf __000008 __000009
- `begin'
= capture noisily version 12: myprobit_lf __000008 __000009
---------------------------------------------------------------------------------------------------------- begin myprobit_lf ---
- version 11
- args lnfj xb
- quietly replace ‘lnfj’ = ln(normal( ‘xb’)) if $ML_y1 == 1
= quietly replace ‘lnfj’ = ln(normal( ‘xb’)) if died == 1
‘lnfj’ invalid name
------------------------------------------------------------------------------------------------------------ end myprobit_lf ---
- `end'
= set trace off
------------------------------------------------------------------------------
Fix myprobit_lf.
r(198);
.
Related Posts with A problem in Maximum Likelihood estimation (MLE) "‘lnfj’ invalid name".
Panel Data - Development of the mean of a variable by year and industry / by year and countryI have panel data and want to create a table that shows the development of the variable digital term…
How to perform an interrupted time series analysis with multiple treatment groups?Hi all, I'm do a controlled interrupted time series analysis on Stata 15.1. I have five years of p…
Compustat-Calculating a firms age (not based on IPO-data)Hello! For my masterthesis I am using the Gfunda as well as the Northamerica Database in Compustat.…
Problem with calculating functions over subgroupsHi, I am having some troubles in computing functions over subgroups. Basically, I have some financ…
Stata triple interaction and base categoryI have four variables: panid (id variable), period (categorical going from 0 to 2), size (categorica…
Subscribe to:
Post Comments (Atom)
0 Response to A problem in Maximum Likelihood estimation (MLE) "‘lnfj’ invalid name".
Post a Comment