Description Usage Arguments Value Author(s)
Initialize a density estimate
1 2 3 |
data |
Dataset. |
range |
Domain of each variable (column) of the dataset. The idea is to allow for bounded kernels in the future, but at the moment this argument has no effect. |
alpha |
Alpha values controlling the global bandwidth scaling.
This should be set to |
beta |
See |
pilot |
Pilot function values for the first iteration. Leave unspecified to use a constant pilot. |
transform |
If estimating multivariate densities, this argument controls
whether the dataset should be pre-rotated and scaled before estimation.
If the covariance matrix of |
na.rm |
Whether to remove observations with missing values ( |
parallel |
See |
log_prior |
A function that calculates a log prior from a data frame
with parameters. See NOTE: |
An unfitted density estimate that it to be passed to
iterate
.
The estimate consist of the following components:
iterations
Number of iterations calculated.
parameters
All the parameters and posterior values.
bandwidths
Bandwidths corresponding to the parameters. These are pre-calculated to make the results easier for the user to digest and manipulate, and since are often needed multiple times.
distance
Distance matrix of the original data set.
constant
Logical vector marking columns in the data set without any variation. These are excluded from the analysis.
transform
To be able to use spherical kernels on multivariate data sets with variables of very different variances or high linear dependence, a PCA-based transformation is applied to the data prior to computation. This element contains that function.
retransform
Function for converting transformed data back
to the original domain. Needed by radeba
.
Christofer B<c3><a4>cklin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.