alKDEshort: Arc length matching for kernel density estimators.

Description Usage Arguments Details Value Examples

Description

Estimate parameters of a linear model by matching the arc lengths of kernel density estimators.

Usage

1
alKDEshort(formula, data = list(), xin, q1, q2, type, ...)

Arguments

formula

An LHS ~ RHS formula, specifying the linear model to be estimated.

data

A data.frame which contains the variables in formula.

xin

Numeric vector of length equal to the number of independent variables, of initial values, for the parameters to be estimated.

q1, q2

Numeric vectors, for the lower and upper bounds of the intervals over which arc lengths are to be computed.

type

An integer specifying the bandwidth selection method used, see bw.

...

Arguments to be passed on to the control argument of the optim function.

Details

A shortened version of alKDE.

Value

alKDEshort: A list with the following components:

Examples

1
2
3
4
x <- 1:10
y <- x+rnorm(10)
XIn <- lm(y~x)
alKDEshort(y~x, xin=coef(XIn), q1=c(0.1,0.5), q2=c(0.5,0.9), type=-1)

mtloots/alR documentation built on May 23, 2019, 8:18 a.m.