alphabetaEB | R Documentation |
Estimates alpha and beta parameter to obtain EB estimator
alphabetaEB(data.dir, pcap, method, opt, maxiter, tol)
data.dir |
Direct estimates of the data from function pcapdir |
pcap |
weighted sample mean and variance from function pcapdir |
method |
Method to estimate alpha and beta parameter according to person(rao or claire) |
opt |
Method to estimate alpha and beta parameter according to the way of calculation (moment or nr) |
maxiter |
the Maximum iteration value |
tol |
Tolerance error value at iteration |
This function returns a data frame with following objects :
alpha_cap |
an alpha estimator by user's choice method |
beta_cap |
an beta estimator by user's choice method |
## load dataset with no weight value data(dataEB) temp = pcapdir(dataEB[,-c(3)]) ## estimates alpha and beta parameter ## in EB estimate with Moment method by J.N.K.Rao alphabetaEB(data.dir = temp$direst ,pcap = temp$pcap, method = "rao", opt = "moment",maxiter = 100,tol = 0.00001) ##load dataset with weight value data(dataEB) temp = pcapdir(dataEB) ## estimates alpha and beta parameter ## in EB estimate with Moment method by Claire E.B.O. alphabetaEB(data.dir = temp$direst ,pcap = temp$pcap, method = "claire", opt = "moment",maxiter = 100,tol = 0.00001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.