eps: a tolerance error for the computation of first order moments
nmax: a first maximum value for the computation of first order moments
Returns
the value of the quadratic loss function L(x;q,β)=(E(X;q,β)−m1)2+(E(X2;q,β)−m2)2 where m1 and m2 are the first and second order sample moments.
See Also
Ediweibull
Examples
n<-100q<-0.5beta<-2.5x<-rdiweibull(n, q, beta)# loss function computed on the true valueslossdiw(x, c(q, beta))par<-estdiweibull(x, method="M")# estimates of the parameters through the method of momentspar
# loss function computed on the estimates derived through# the method of momentslossdiw(x, par)# it should be zero (however, smaller than before...)