Evaluate conditional pdf, cdf, and quantiles for smoothing spline density estimates.
cdssden(object, x, cond, int=NULL)
cpssden(object, q, cond)
cqssden(object, p, cond)
cdssden
returns a list object with the following elements.
Vector of conditional pdf.
Normalizing constant.
cpssden
and cqssden
return a vector of conditional cdf
or quantiles.
Object of class "ssden"
.
Data frame or vector of points on which conditional density is to be evaluated.
One row data frame of conditioning variables.
Normalizing constant.
Vector of points on which conditional cdf is to be evaluated.
Vector of probabilities for which conditional quantiles are to be calculated.
The argument x
in cdssden
is of the same form as the
argument newdata
in predict.lm
, but can take a
vector for 1-D conditional densities.
cpssden
and cqssden
naturally only work for 1-D
conditional densities of a numerical variable.
Fitting function ssden
and dssden
.