Learn R Programming

LREP (version 0.1.1)

sigmaalphaLREP: The program will take your data as input and return three numbers as output: estimate of s, estimate of alpha, and value of the statistic L.

Description

The program will take your data as input and return three numbers as output: estimate of s, estimate of alpha, and value of the statistic L.

Usage

sigmaalphaLREP(x, tolerance)

Arguments

x

Import Raw data

tolerance

Tolerance quantity

Value

Output three estimates by using maximum likelihood method

Fields

s.hat

Output estimate of s

a.hat

estimate of alpha

log.like.ratio

value of the statistic L

Examples

Run this code
# NOT RUN {
x<-rexp(1000,0.1)
print(sigmaalphaLREP(x,10^-12))
# }

Run the code above in your browser using DataLab