Learn R Programming

SCoRES (version 0.1.2)

SCB_dense: Construct Simultaneous Confidence Bands (SCB) for Dense Functional Data

Description

Construct Simultaneous Confidence Bands (SCB) for Dense Functional Data

Usage

SCB_dense(
  A,
  mean_A = NULL,
  alpha = 0.05,
  Mboots = NULL,
  method = "t",
  weights = "rademacher",
  SCB = TRUE
)

Value

If SCB = TRUE, returns a list containing:

mu_hat

Estimated mean function for the group of interest.

se_hat

Standard errors of the estimated means.

scb_low

Lower bound of the simultaneous confidence band.

scb_up

Upper bound of the simultaneous confidence band.

type

A character description of the output type.

If SCB = FALSE, returns:

thres

The alpha quantile estimated by Multiplier Bootstrap

Arguments

A

A data array of dimension \((D_1, D_2, \ldots, D_N)\), where N is the number of repetition/subjects. There should be no NA in A.

mean_A

Optional array of same shape as A[,,1], representing the estimated mean of the data.

alpha

Significance level for SCB. Default is 0.05.

Mboots

Number of bootstrap replications. Default is 5000.

method

Method for SD estimation: "t" or "regular". Default is "t".

weights

Multiplier type: "rademacher", "gaussian", or "mammen". Default is "rademacher"."

SCB

Logical value for whether to calculate the SCB or not. Default is TRUE.