CPFISH.power: CPFISH power

View source: R/CPFISHPower.R

CPFISH.powerR Documentation

CPFISH power

Description

The basic idea of CPFISH power calculations is to do parametric bootstrapping for each dose/concentration group and to evaluate the proportion of results significantly different from the control.

Usage

CPFISH.power(
  contingency.table,
  control.name = NULL,
  alpha = 0.05,
  bootstrap.runs = 200,
  simulate.p.value = TRUE,
  use.fixed.random.seed = NULL,
  show.progress = TRUE,
  show.results = TRUE
)

Arguments

contingency.table

Matrix with observed data (e.g. survival counts, survival must be in first row)

control.name

Character string with control group name (optional)

alpha

Significance level

bootstrap.runs

Number of bootstrap runs (draw Poisson data n times)

simulate.p.value

Use simulated p-values in Fisher test or not

use.fixed.random.seed

Use fixed seed, e.g. 123, for reproducible results. If NULL no seed is set.

show.progress

Show progress for each shift of the probability

show.results

Show results

Value

Data frame with results from power analysis

Examples

CPFISH.contingency.table	# example data provided alongside the package

# Test CPFISH power
CPFISH.power(contingency.table = CPFISH.contingency.table,
			control.name = NULL,
			alpha = 0.05,
			bootstrap.runs = 10,	# Caution: low number of bootstrap runs for testing
			simulate.p.value = TRUE,
			use.fixed.random.seed = 123,  #fixed seed for reproducible results
			show.progress = TRUE,
			show.results = TRUE)

qountstat documentation built on April 4, 2025, 12:18 a.m.