Skip to contents

Deprecated: This function is deprecated and will be removed in a future version.

Use plot(fit, type = "ft") instead, where fit is a bbnp_density or bbnp_regression object.

Usage

plot_ft(X, xi_interval, ft_plot.resol = 500)

Arguments

X

A numerical vector of sample data.

xi_interval

A list containing the lower (xi_lb) and upper (xi_ub) bounds of the xi interval.

ft_plot.resol

An integer representing the resolution of the plot, specifically the number of points used to represent the Fourier transform. Defaults to 500.

Value

A ggplot object representing the plot of the Fourier transform.

Details

C = 1, the parameter in \(O(1/n^{0.25})\), see more details in in Schennach (2020).

Examples

if (FALSE) { # \dontrun{
# Old (deprecated):
# plot_ft(sample_data$X, xi_interval = list(xi_lb = 1, xi_ub = 50))

# New (recommended):
fit <- biasBound_density(sample_data$X, h = 0.1)
plot(fit, type = "ft")
} # }