calculateNbDiffCase: Calculate the number of differentially methylated cases.

Description Usage Arguments Value Author(s) Examples

View source: R/methylInheritanceSimInternalMethods.R

Description

Identify the number of differentially methylated cases.

Usage

1
calculateNbDiffCase(nbCase, propDiff, propDiffSd)

Arguments

nbCase

a positive integer, the number of cases.

propDiff

a double superior to 0 and inferior or equal to 1, the mean value for the proportion of samples that will have, for a specific position, differentially methylated values. It can be interpreted as the penetrance.

propDiffSd

a non-negative double, the standard deviation associated to the propDiff

Value

a integer, the number of differentially methylated cases.

Author(s)

Pascal Belleau, Astrid Deschenes

Examples

1
2
3
4
5
6
## Fix seed to have reproducible results
set.seed(3122)

## Obtained the number of differential cases
methInheritSim:::calculateNbDiffCase(nbCase = 8, 
    propDiff = 0.8, propDiffSd = 0.2)

belleau/methInheritSim documentation built on April 1, 2020, 2:43 p.m.