I am currently finishing my undergraduate thesis about parameter estimation on Exponentiated Modified Weibull Extension (EMWE) distribution introduced by Sarhan and Apaloo (2013) with the following pdf:
f(x,theta)=theta[1]*theta[2]*theta[3]*((x/theta[4])^(theta[2]-1))*(exp(((x/theta[4])^theta[2])+(theta[1]*theta[4]*(1-(exp(x/theta[4])^theta[2])))))*(1-(exp(theta[1]*theta[4]*(1-(exp(x/theta[4])^theta[2])))))^(theta[3]-1)
This distribution has four parameters to be estimated using maximum likelihood estimation. Due to estimate parameters implicitly then I tried to continue with the Newton-Raphson iteration method. For my computation process, I'm using statistical software R Language. Package that I use is "maxLik" with an initial value for Newton-Raphson method is (theta [1] = 0.00007181, theta [2] = 3,148, theta [3] = 0.145, theta [4] = 49.05)
.
This is the loglikelihood function:
l(theta)=n*(log(theta[1])+log(theta[2])+log(theta[3])+(1-theta[2])*log(theta[4])+theta[1]*theta[4])+(theta[2]-1)*sum(log(xi))+(1/(theta[4]^theta[2]))*sum(xi^theta[2])-(theta[1]*theta[4])*sum(exp((xi/theta[4])^theta[2]))+(theta[3]-1)*sum(1-(exp((theta[1]*theta[4])*(1-(exp((xi/theta[4])^theta[2]))))))
But in this process of parameter estimation with the help of R Language, I impasse because of the results I obtained are not similar with the estimation results in a reference paper I use. This is the following R Language syntax I use:
xi<-c(0.1,0.2,1,1,1,1,1,2,3,6,7,11,12,18,18,18,18,18,21,32,36,40,45,46,47,50,55,60,63,63,67,67,67,67,72,75,79,82,82,83,84,84,84,85,85,85,85,85,86,86);
n <-length (xi);
parameter <-function (theta, xi) {
logL<-(n*(log(theta[1])+log(theta[2])+log(theta[3])+(1-theta[2])*log(theta[4])+theta[1]*theta[4])+(theta[2]-1)*sum(log(xi))+(1/(theta[4]^theta[2]))*sum(xi^theta[2])-(theta[1]*theta[4])*sum(exp((xi/theta[4])^theta[2]))+(theta[3]-1)*sum(1-(exp((theta[1]*theta[4])*(1-(exp((xi/theta[4])^theta[2])))))))
return (-logL)
};
library(maxLik);
output <-maxLik (parameter, start = c (0.00007181,3.148,0.145,49.05), xi = xi);
Based on the syntax, the result of parameter estimation I get is:
theta [1] = 4.785855e-03
theta [2] = 1.759048e-04
theta [3] = 2.983679e + 04
theta [4] = 9.139192e + 02
While on paper belongs Sarhan and Apaloo (2013), the result should be as follows:
theta [1] = 2.506924e-06
theta [2] = 3.148000e + 00
theta [3] = 1.450000e-01
theta [4] = 4.905000e + 01
I am confused where my error in the above program. Previously, I apologize if I bothered you all. I really appreciate your help to me for completing this undergraduate thesis. Soon I will present this thesis and I found a lot of deadlocks. I really expect any help from you, no matter how small the help it would be greatly appreciated. Thank you so much
- To be honest, I feel so sorry for my bad english grammar. I don't speak English