mixedcirc_boottest: Bootstrap Testing for Circadian Data

View source: R/mixedcirc_boottest.R

mixedcirc_boottestR Documentation

Bootstrap Testing for Circadian Data

Description

This function performs bootstrap testing on fitted (mixed) circadian models.

Usage

mixedcirc_boottest(
  object,
  nsim,
  seed,
  parallel = c("no", "multicore", "snow"),
  ncpus = getOption("boot.ncpus", 1L),
  boot.type = c("perc", "basic", "norm")[1],
  conf_level = 0.95,
  abs_phase = TRUE,
  ...
)

Arguments

object

A fitted model object of class mixedcirc_fit.

nsim

Number of bootstrap simulations.

seed

seed for reproducibitly

parallel

The type of parallel processing to use ("no", "multicore", "snow").

ncpus

Number of CPU cores to use for parallel processing.

boot.type

Type of bootstrap confidence interval ("perc", "basic", "norm").

conf_level

Confidence level for the bootstrap intervals.

abs_phase

Logical; if TRUE, absolute phases are returned.

...

Additional arguments passed to bootMer.

Value

A mixedcirc_boot object containing:

  • results: A data frame with bootstrap statistics.

  • metadata: Metadata about the bootstrap procedure.

  • original_model: The original fitted model object.

Examples

## Not run: 
  # Example usage
  result <- mixedcirc_boottest(fitted_model, nsim = 1000)

## End(Not run)

PayamEmami/mixedcirc documentation built on Jan. 15, 2025, 5:36 p.m.