Learn R Programming

twopexp (version 0.1.0)

pmle_tpexp: Penalized maximum likelihood estimation for the two-parameter exponential dist.

Description

To estimate the location (or shift) and scale parameters for the two-parameter exponential distribution based on penalized maximum likelihood method. See detail in source

Usage

pmle_tpexp(x, theta = 0, beta = 1)

Value

the estimate three values for the two-parameter exponential dist. as follows: ptheta.hat gives the estimate location parameter, pbeta.hat gives the estimate scale parameter, and plamda.hat gives the estimate the rate.

Arguments

x

vector of quantile (or a data set).

theta

location parameter, where \(\theta > 0\).

beta

scale parameter, where \(\beta > 0\) and \(rate=1/\beta\).

Examples

Run this code
x1 <- c(25,43,53,65,76,86,95,115,132,150) # test a data set
pmle_tpexp(x1)
x2 <- c(20,15,10,25,35,30,40,70,50,60,90,100,80,5) # test a data set
pmle_tpexp(x2)

Run the code above in your browser using DataLab