Description Usage Arguments Value Examples
Provides pre-implemented APIs to packages for joint density estimation. Optionally, custom fit and evaluation functions can be provided.
1 2 |
package |
character string of the package name; so far, only
|
fit_fun |
only used if |
eval_fun |
only used if |
cc |
only used if |
... |
additional parameters passed to |
An object of class "jd_method"
.
1 2 3 4 5 6 7 8 9 10 11 12 | # pre-implemented APIs
cctools_method <- jd_method("cctools")
kdevine_method <- jd_method("kdevine")
np_method <- jd_method("np")
# custom API (alternative implementation of kdevine method)
require(kdevine)
fit_kdevine <- function(x, ...)
kdevine::kdevine(x, ...)
eval_kdevine <- function(object, newdata, ...)
kdevine::dkdevine(newdata, object)
my_method <- jd_method(fit_fun = fit_kdevine, eval_fun = eval_kdevine, cc = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.