chooseDelta: Choose threshold value to remove spurius bumps

Description Usage Arguments Value

View source: R/basicFunctions.R

Description

This function is typically not directly used by the user; it is used inside fitFlexCoDE

Usage

1
chooseDelta(objectCDE, X, Z, delta_grid = seq(0, 0.4, 0.05), n_grid = n_grid)

Arguments

objectCDE

An object of the class FlexCoDE with a fitted CDE, typically fitted used fitFlexCoDE beforehand

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

Value

Value of delta for bump removal which minimizes CDE loss


rizbicki/FlexCoDE documentation built on Feb. 10, 2022, 3:14 p.m.