Learn R Programming

PSCBS (version 0.67.0)

bootstrapTCNandDHByRegion.PairedPSCBS: Estimate confidence intervals of TCN and DH segment levels

Description

Estimate confidence intervals of TCN and DH segment levels using bootstrap.

Usage

# S3 method for PairedPSCBS
bootstrapTCNandDHByRegion(fit, B=1000L, boot=NULL, ..., probs=c(0.025, 0.05, 0.95,
  0.975), statsFcn=NULL, what=c("segment", "changepoint"), force=FALSE, verbose=FALSE,
  .debug=FALSE)

Value

Returns a PairedPSCBS object.

Arguments

B

A positive integer specifying the number of bootstrap samples.

boot

Alternatively, to generating B bootstrap samples, this specifies a pre-generated set of bootstrap samples as returned by bootstrapSegmentsAndChangepoints().

...

Additional arguments passed to bootstrapSegmentsAndChangepoints().

probs

The default quantiles to be estimated.

statsFcn

A (optional) function that estimates confidence intervals given locus-level data. If NULL, the quantile function is used.

what

A character vector specifying what to bootstrap.

force

If TRUE, already existing estimates are ignored, otherwise not.

verbose

See Verbose.

.debug

(internal) If TRUE, additional sanity checks are performed internally.

Author

Henrik Bengtsson