powered by
Estimate parameters of a linear model by matching the arc lengths of kernel density estimators.
alKDEshort(formula, data = list(), xin, q1, q2, type, ...)
An LHS ~ RHS formula, specifying the linear model to be estimated.
A data.frame which contains the variables in formula.
formula
Numeric vector of length equal to the number of independent variables, of initial values, for the parameters to be estimated.
Numeric vectors, for the lower and upper bounds of the intervals over which arc lengths are to be computed.
An integer specifying the bandwidth selection method used, see bw.
bw
Arguments to be passed on to the control argument of the optim function.
optim
alKDEshort: A list with the following components:
coefficients: A vector of estimated coefficients.
error: The value of the objective function.
A shortened version of alKDE.
alKDE
# NOT RUN { 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) # }
Run the code above in your browser using DataLab