lengthest: Performs width estimation for a numerical data set.

Description Usage Arguments Value Examples

Description

Function lengthest() computes the length of an interval which is the domain of uniform distribution from data contaminated with additive error. The additive error can be chosen as Laplace, Gauss or scaled Student distribution with 1 - 5 degrees of freedom.

Usage

1
2
lengthest(x, error = c("laplace", "gauss", "t1", "t2", "t3", "t4", "t5"),
  sd = NULL, sd.est = c("MM", "ML"), conf.level = 0.95)

Arguments

x

Vector of input data.

error

A character string specifying the error distribution. Must be one of "laplace", "gauss", "t1", "t2", "t3", "t4", "t5". Can be abbreviated.

sd

Explicit error standard deviation. Needs to be given if sd.est is not given.

sd.est

A character string specifying the method of error standard deviation estimation. Must be given if sd is not given. Can be "MM" (Method of Moments) or "ML" (Maximum Likelihood).

conf.level

Confidence level of the confidence interval.

Value

List containing:

Examples

1
2
3
4
5
# generate uniform data with additive error and run a length estimation on it
sample_1 <- runif(1000, -1, 1)
sample_2 <- rnorm(1000, 0, 0.1)
sample <- sample_1 + sample_2
out <- lengthest(x = sample, error = "gauss", sd.est = "MM", conf.level = 0.90)

LeArEst documentation built on May 2, 2019, 7:55 a.m.

Related to lengthest in LeArEst...