estimParam compute the parametric estimation of the first model on the input file containing the stay duration Xi and the side effect reporting Zi. this estimator of mu is the estimator of maximum likelihood of the random variable \(Zi / Xi=x\). the risk constant R is given by the equation (star) \(R=mu\).
estimParam(fileName, toplot = TRUE, header = TRUE, ks = FALSE, DV = FALSE)
the file in which the simulated data will be stored
a logical variable to plot the result of this estimation
a logical for : has the input file an header
a logical for : do you want the Kolmogorv Smirnov test
a logical for : do you want to calculate the De Vielder estimation
a list of the following components
the CR risk constant calculated with the value of R
the risk constant estimated by this estimation
the vector of observations of the random variable T
the best estimation of lambda : the ESBVM of lambda
the best estimation of mu : the value of mu which maximize the loglikelihood
the estimation of the lambda of the De Vielder method (only available if DV=TRUE
and if there is no problem with De Vielder method)
the estimation of the mu of the De Vielder method (only available if DV=TRUE
)
# NOT RUN {
#res<-estimDV("data.rda",TRUE,TRUE)
# }
Run the code above in your browser using DataLab