Usage
cde.bandwidths(x, y, deg = 0, link = "identity", method = 1,
y.margin, passes=2, ngrid=8, min.a=NULL, ny=25, use.sample=FALSE,
GCV=TRUE, b=NULL,...)Arguments
x
Numerical vector: the conditioning variable.
y
Numerical vector: the response variable.
deg
Degree of local polynomial used in estimation.
link
Link function used in estimation. Default "identity". The other possibility is "log" which is recommended if degree > 0.
method
[object Object],[object Object],[object Object],[object Object]
y.margin
Values in y-space on which conditional density is calculated. If not specified, an equi-spaced grid of 50 values over the range of y is used.
passes
Number of passes through Bashtannyk-Hyndman algorithm.
ngrid
Number of values of smoothing parameter in grid.
min.a
Smallest value of a to consider if method=1.
ny
Number of values to use for y margin if y.margin is missing.
use.sample
Used when regression method (3) is chosen.
GCV
Generalized cross-validation. Used only if method=1 and deg>0. If GCV=FALSE, method=1 and deg=0, then the AIC is used instead.
The argument is ignored if deg=0 or method>1.
b
Value of b can be specified only if method=1 and deg>0. For deg=0 or method>1, this argument is ignored.
...
Other arguments control details for individual methods.