Description Usage Arguments Value
View source: R/basicFunctions.R
Chooses optimal alpha for the new conditional density estimator f(z|x) <- f^alpha(z|x).
1 2 3 4 5 6 7 | chooseSharpen(
objectCDE,
X,
Z,
alpha_grid = seq(0.01, 10, length.out = 20),
n_grid = n_grid
)
|
objectCDE |
An object of the class FlexCoDE with a fitted CDE,
typically fitted used |
X |
Covariates used to validate (tune) the model (one x observation per row). |
Z |
Responses used to validate (tune) the model (matrix with 1 column). Each row corresponds to a row of the xValidation argument |
alpha_grid |
Grid of values of alpha |
Value of alpha which minimizes CDE loss
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.