Dear Statalist-Members,
I intended to use maximum likelihood to select among several models using the result of the maximized likelihood in an Akaike Information Criterion but experience some problems - probably due to some sort of defect in the likelihood function. I already have some ideas what went wrong but would like to discuss this matter with someone who is a bit more competent than me.
In detail, i tried to fit parameters of several competing binary choice models of consumer behavior using the ml model command, for which i wrote the respective programs according to the descriptions in Gould, Pitblado and Poi "Maximum Likelihood Estimation in Stata", 3rd. ed. To test whether my code was correct, i constructed a file in Stata, that simulates a customers behavior for each model under consideration by generating observations, which were used in my ml file for estimating the parameters of the respective models. The additional purpose of this simulation was to check whether i would be able to identify the true underlying model and recover its parameters.
According to theory, the true model should return a likelihood that is exactly zero with parameters identical with the parameters, that were used to generate these observations. Unfortunately, neither the true parameters used for the simulation can be retreived nor is the likelihood near zero.. in fact it ranges close to the likelihood if observations were generated randomly. If i plug in the true parameters into the ml code, i get a likelihood pretty close to zero, but once i start the maximize command, things fall appart..
My question is now: For the poor estimates of my parameters, i think i can blame multicollinearity, but this should still yield a log-likelihood of zero (except the search algorithm stops due to insufficient small slope of the score vector, but i dont think so as the maximized likelihood is so negative) Do you have an idea what i can do and what might drive my results?
Please let me know if you need parts of the code or mode information concerning the problem.
Many thanks for considering!!!
Thomas
I intended to use maximum likelihood to select among several models using the result of the maximized likelihood in an Akaike Information Criterion but experience some problems - probably due to some sort of defect in the likelihood function. I already have some ideas what went wrong but would like to discuss this matter with someone who is a bit more competent than me.
In detail, i tried to fit parameters of several competing binary choice models of consumer behavior using the ml model command, for which i wrote the respective programs according to the descriptions in Gould, Pitblado and Poi "Maximum Likelihood Estimation in Stata", 3rd. ed. To test whether my code was correct, i constructed a file in Stata, that simulates a customers behavior for each model under consideration by generating observations, which were used in my ml file for estimating the parameters of the respective models. The additional purpose of this simulation was to check whether i would be able to identify the true underlying model and recover its parameters.
According to theory, the true model should return a likelihood that is exactly zero with parameters identical with the parameters, that were used to generate these observations. Unfortunately, neither the true parameters used for the simulation can be retreived nor is the likelihood near zero.. in fact it ranges close to the likelihood if observations were generated randomly. If i plug in the true parameters into the ml code, i get a likelihood pretty close to zero, but once i start the maximize command, things fall appart..
My question is now: For the poor estimates of my parameters, i think i can blame multicollinearity, but this should still yield a log-likelihood of zero (except the search algorithm stops due to insufficient small slope of the score vector, but i dont think so as the maximized likelihood is so negative) Do you have an idea what i can do and what might drive my results?
Please let me know if you need parts of the code or mode information concerning the problem.
Many thanks for considering!!!
Thomas
Comment