cdssden | R Documentation |
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)
object |
Object of class |
x |
Data frame or vector of points on which conditional density is to be evaluated. |
cond |
One row data frame of conditioning variables. |
int |
Normalizing constant. |
q |
Vector of points on which conditional cdf is to be evaluated. |
p |
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.
cdssden
returns a list object with the following elements.
pdf |
Vector of conditional pdf. |
int |
Normalizing constant. |
cpssden
and cqssden
return a vector of conditional cdf
or quantiles.
If variables other than factors or numerical vectors are involved in
x
, the normalizing constant can not be computed.
Fitting function ssden
and dssden
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.