Performs bootstrap resampling for functional data.

fbootstrap(
  data,
  estad = func.mean,
  alpha = 0.05,
  nb = 200,
  suav = 0,
  media.dist = FALSE,
  graph = FALSE,
  ...
)

Arguments

data

A functional time series object of class fts.

estad

Function to compute the statistic of interest (default: func.mean).

alpha

Significance level for confidence intervals (default: 0.05).

nb

Number of bootstrap replications (default: 200).

suav

Smoothing parameter (default: 0.0).

media.dist

Logical. If TRUE, use mean distance (default: FALSE).

graph

Logical. If TRUE, produce graphical output (default: FALSE).

...

Additional arguments passed to the statistic function.

Value

A list containing:

estimate

Original estimate

max.dist

Maximum distance for confidence interval

rep.dist

Bootstrap distances

resamples

Bootstrap resamples

center

Center of bootstrap distribution

See also

func.mean, ftsm

Examples

if (FALSE) { # \dontrun{
# Load example data
data(pm_10_GR)

# Perform functional bootstrap
boot_result <- fbootstrap(pm_10_GR, estad = func.mean, nb = 100)

# Plot results
plot(boot_result$estimate, type = "l", col = "red", lwd = 2)
} # }