Dear Statalisters,
I would very much appreciate help regarding the following problem:
I want use ml to fit a stretched exponential function to different datasets:
y = exp(b0 * x(b1 - 1) + b2)
b0, b1 and b2 denote the parameters of the function, while "x" and "y" are variables.
I already tried to use the nl-command to fit the function:
In many cases, however, there are convergence issues and other problems. That's why I want to try using ml.
I have already used the ml-command, but I am not very familiar with it.
I first would like to define a program to calculate the log likelihood
Using this program,I would try to fit the model like this
As you can see in the program above, I don't know the likelihood function of this particular stretched exponential function... unfortunately, my "statistical" skills are not sufficient in this area...
So if anyone can tell me the likelihood or has any tips, please let me know, I would be very grateful.
Many thanks
Ali
I would very much appreciate help regarding the following problem:
I want use ml to fit a stretched exponential function to different datasets:
y = exp(b0 * x(b1 - 1) + b2)
b0, b1 and b2 denote the parameters of the function, while "x" and "y" are variables.
I already tried to use the nl-command to fit the function:
Code:
nl (y = exp({b0}*chars^({b1}-1)+{b2}))
In many cases, however, there are convergence issues and other problems. That's why I want to try using ml.
I have already used the ml-command, but I am not very familiar with it.
I first would like to define a program to calculate the log likelihood
Code:
program define stretched args lnf x qui replace `lnf' = /* fill in likelihood function here */ end
Using this program,I would try to fit the model like this
Code:
ml model lf stretchedexp (x=y) ml maximize
As you can see in the program above, I don't know the likelihood function of this particular stretched exponential function... unfortunately, my "statistical" skills are not sufficient in this area...
So if anyone can tell me the likelihood or has any tips, please let me know, I would be very grateful.
Many thanks
Ali
Comment