alEfit: Arc length estimation.

Description Usage Arguments Details Value Methods (by class) Examples

View source: R/alEfit.R

Description

A framework for arc length estimation.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
alE(x, q1, q2, dc, type)

alEfitdist(x, q1, q2, dc, type, bootstraps)

alEfit(X, q1, q2, dc, type, bootstraps, ...)

## Default S3 method:
alEfit(X, q1, q2, dc, type, bootstraps, ...)

## S3 method for class 'alEfit'
print(x, ...)

Arguments

x

An alEfit object.

q1, q2

Vectors specifying the quantiles over which arc length segments are to be computed.

dc

TRUE/FALSE: Should the discrete or continuous sample statistic be used.

type

The type of bandwidth estimator for the underlying KDE; see bw.

bootstraps

An integer specifying the size of the parametric bootstrap.

X

A vector of sample values.

...

Additional arguments passed to alEfit (not currently used).

Details

This method is currently only implemented for the normal distribution. The underlying C code for the Nelder-Mead method of the optim function is used for optimising the objective function. The tolerance level is set at 1e-15, and a maximum number of 1000 iterations is allowed. The maximum likelihood estimates are used as initial values for the Nelder-Mead algorithm.

Value

alE: A list with the following components (see optim):

alEfitdist: A matrix of parameter estimates resulting from the estimated arc lengths over the specified interval(s), i.e. the bootstrap distribution for the estimated parameters resulting from the chosen sample arc length statistic.

alEfit: A generic S3 object with class alEfit.

alEfit.default: A list with all components from alE, as well as :

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
x <- rnorm(1000)
alE(x,0.025, 0.975, TRUE, -1)
alE(x,c(0.025, 0.5), c(0.5, 0.975), TRUE, -1)
alE(x,0.025, 0.975, FALSE, -1)
alE(x,c(0.025, 0.5), c(0.5, 0.975), FALSE, -1)

## Not run: 
alEfitdist(x, 0.025, 0.975, TRUE, -1, 100)
alEfitdist(x, 0.025, 0.975, FALSE, -1, 100)

## End(Not run)
alEfit(x, q1=0.025, q2=0.975, dc=TRUE, type=-1, bootstraps=50)
alEfit(x, q1=0.025, q2=0.975, dc=FALSE, type=-1, bootstraps=50)

alR documentation built on Dec. 7, 2017, 5:03 p.m.

Related to alEfit in alR...