View source: R/test_conditional_independence.R
Estimates the conditional density function for one free variable on a grid. Returns a function that interpolates between these grid points so that it can be evaluated more quickly, without new optimizations.
1 2 3 4 5 6 7 | interpolate_conditional_density(
lg_object,
condition,
nodes,
extend = 0.3,
gaussian_scale = lg_object$transform_to_marginal_normality
)
|
lg_object |
An object of type |
condition |
A vector with conditions for the variables that we condition upon. Must have exactly one more element than there are columns in the data |
nodes |
Either the number of equidistant nodes to generate, or a vector of nodes supplied by the user |
extend |
How far to extend the grid beyond the extreme data points, in share of the range |
gaussian_scale |
Stay on the standard Gaussian scale, useful for the accept-reject algorithm |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.