calculateNbDiffCase {methInheritSim}R Documentation

Calculate the number of differentially methylated cases.

Description

Identify the number of differentially methylated cases.

Usage

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


## 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)


[Package methInheritSim version 1.10.0 Index]