bootstrapNormalPeakCI: Bootstrap the 95% confidence interval of a normal function.

View source: R/normalFit.R

bootstrapNormalPeakCIR Documentation

Bootstrap the 95% confidence interval of a normal function.

Description

?

Usage

bootstrapNormalPeakCI(pos, values, bootstraps = 1000)

Arguments

pos

A numeric vector with N data positions.

values

A numeric matrix with N rows and M cols giving values (densities) from M observations at N positions.

bootstraps

The number of bootstrapped samples (M columns) to fit a normal function to.

Details

?

Value

Named numeric vector, with the 2.5^nd, 50^th and 97.5^th percentile of the locations of peaks of a normal function fitted to samples of the data. These are the upper and lower bound of the 95 well as the median.

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.