Dear all,
I am trying to perform a maximum likelihood that it is a little bit
complicate for me.
I specified the model and after that I used the command ml check to
control that everything was fine, but I received the message that
there are too few variables specified.
Could you please help me to understand what is wrong with my model? I
really need help!
Following my program:
program define myprogram
version 10.0
args lnf a d m e g p
tempvar eh mu ma me md mg mp
quietly gen double `eh'=0.7*`e'
quietly gen double `mu'=1-`m'
quietly gen double `ma'=1-`a'
quietly gen double `me'=1-`e'
quietly gen double `md'=1-`d'
quietly gen double `mg'=1-`g'
quietly gen double `mp'=1-`p'
quietly replace
`lnf'=ln((`a')*(`d')*((((`m')*(`g')+(`mu')*(`e')*(`eh')*(`p'))^bo)*(((`m')*(`mg')+(`mu')*(`e')*(`eh')*(`mp'))^bq)*(((`mu')*(`e')*(`eh')*(`p'))^so)*(((`mu')*(`e')*(`eh')*(`mp'))^sq)*(((`mu')*(`me'))^n))+(`a')*(`md')*((((`mu')*(`e')*(`eh')*(`p'))^bo)*(((`mu')*(`e')*(`eh')*(`mp'))^bq)*(((`m')*(`g')+(`mu')*(`e')*(`eh')*(`p'))^so)*(((`m')*(`mg')+(`mu')*(`e')*(`eh')*(`mp'))^sq)*(((`mu')*(`me'))^n))+(`ma')*((((`e')*(`eh')*(`p'))^bo)*(((`e')*(`eh')*(`mp'))^bq)*(((`e')*(`eh')*(`p'))^so)*(((`e')*(`eh')*(`mp'))^sq)*((`me')^n))
end
ml model lf myprogram (a:) (d:) (m:) (e:) (g:) (p:)
ml check
After this I receive the error message.
Thank you very much for you time.
Katia
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/