Skip to contents

Makes confidence bands for fragmentary functional data

Usage

confidence_band_fragm(
  x,
  diag.cov.x,
  tau = NULL,
  df = NULL,
  type = c("FFSCB.z", "FFSCB.t", "naive.t"),
  conf.level = 0.95,
  n_int = 2
)

Arguments

x

Functional parameter estimate (for instance, the empirical mean function). It can be either a vector or fd object from fda.

diag.cov.x

diag(Cov(x)), in which x is the functional estimator (for instance, the covariance function of the empirical mean function). It can be either matrix or bifd object from fda. The eigen decomposition of Cov(X) can be used instead.

tau

Pointwise standard deviation of the standardized and differentiated sample functions. Can be estimated by tau_fun().

df

Degrees of freedom parameter for the t-distribution based bands 'FFSCB.t' and 'naive.t'. If x is the empirical mean function, set df=n-1, where n denotes the sample size.

type

The band(s) to be constructed.

  • FFSCB.z : Fast'n'Fair (adaptive) simultaneous confidence band based for a Gaussian functional parameter estimate.

  • FFSCB.t : Fast'n'Fair (adaptive) simultaneous confidence band based for a t-distributed functional parameter estimate.

conf.level

A vector of confidence levels for the bands to achieve.

n_int

Number of intervals for the piecewise linear confidence bounds.

Value

confidence_band_fragm

References

  • Liebl, D. and Reimherr, M. (2022+). Fast and fair simultaneous confidence bands.