ERRparameters: Calculate simulation parameters for a given set of...

View source: R/ERRparameters.R

ERRparametersR Documentation

Calculate simulation parameters for a given set of (artithmetic) mean counts, coefficients of variation and correlation

Description

Calculate simulation parameters for a given set of (artithmetic) mean counts, coefficients of variation and correlation

Usage

ERRparameters(mu_pre, mu_post, cv_pre, cv_post, correlation, geomgamma = FALSE)

Arguments

mu_pre

The pre-treatment arithmetic mean count

mu_post

The post-treatment arithmetic mean count

cv_pre

The extra-Poisson coefficient of variation (ratio of standard deviation to mean) in the pre-treatment data

cv_post

The extra-Poisson coefficient of variation (ratio of standard deviation to mean) in the post-treatment data

correlation

The extra-Poisson correlation between pre- and post-treatment lambda parameters (GP) or log-lambda parameters (LP)

geomgamma

Should the geometric mean reduction for the gamma-Poisson data be estimated by simulation?

Value

a list with components reflecting the necessary simulation parameters for correlated gamma-Poisson and correlatedlognormal-Poisson distributions

Examples

ERRparameters(100, 10, 2, 2.5, 0.4, TRUE)


ku-awdc/eggSim documentation built on Feb. 23, 2024, 10:22 p.m.