- x
Numerical vector or matrix: the conditioning variable(s).
- 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.
- a
Optional bandwidth in x direction.
- b
Optional bandwidth in y direction.
- mean
Estimated mean of y|x. If present, it will adjust conditional
density to have this mean.
- x.margin
Values in x-space on which conditional density is
calculated. If not specified, an equi-spaced grid of nxmargin values
over the range of x is used. If x is a matrix, x.margin should be a list of
two numerical vectors.
- y.margin
Values in y-space on which conditional density is
calculated. If not specified, an equi-spaced grid of nymargin values
over the range of y is used.
- x.name
Optional name of x variable used in plots.
- y.name
Optional name of y variable used in plots.
- use.locfit
If TRUE, will use locfit::locfit() for
estimation. Otherwise stats::ksmooth() is used.
locfit::locfit() is used if degree>0 or link not the identity or
the dimension of x is greater than 1 even if use.locfit=FALSE.
- fw
If TRUE (default), will use fixed window width estimation.
Otherwise nearest neighbourhood estimation is used. If the dimension of x is
greater than 1, nearest neighbourhood must be used.
- rescale
If TRUE (default), will rescale the conditional densities to
integrate to one.
- nxmargin
Number of values used in x.margin by default.
- nymargin
Number of values used in y.margin by default.
- a.nndefault
Default nearest neighbour bandwidth (used only if
fw=FALSE and a is missing.).
- ...
Additional arguments are passed to locfit.