Learn R Programming

marl (version 1.0)

wt.rel.negbin: Weighted relative likelihood function based on Negative Binomial distribution.

Description

This function constructs wt. rel. likld.function based on neg bin distribution. It provides plot, area under curve, mle, and values of wt. rel. function

Usage

wt.rel.negbin(x, mu.min, mu.max, plot = FALSE, len = 100)

Arguments

x
vector or list of observations
mu.min
Minimum value of mu for the relative likelihood function.
mu.max
Minimum value of mu for the relative likelihood function.
plot
If TRUE provides a plot of weighted relative likelihood functions
len
Length of values to be evaluated at in between mu.min and mu.max

Value

mle
Mode of the likelihood function
AUC
Area under curve of the wt. rel. likld function. Estimated numerically using optimize function.
mu
Values of mu between mu.min and mu.max
Val
Values of wt. rel. likld. function evaluated at mu.

Details

For mathematical details, please contact the authors.

References

No reference currently.

Examples

Run this code
mu.min <- 0.5; mu.max <- 50; len <- 100
y <- rnbinom(10,mu=10,size=3)
wt.rel.negbin(y,mu.min,mu.max,plot = TRUE, len = len) 

Run the code above in your browser using DataLab