FDRcompute: FDRcompute: compute false discovery date by comparing...

Description Usage Arguments Value Author(s) See Also Examples

Description

This function is used to estimate false discovery date of MICC model by comparing posterior probability from real data and simulated data

Usage

1
FDRcompute(data_formatted, params, PostProb)

Arguments

data_formatted

Formatted data matrix by "InputMatrixFormatted" function

params

Parameters after fitting MICC model. See "MICCMainLearn" for more details.

PostProb

Posterior probability that a PET cluster is true interaction clusters

Value

A vector of estimated false discovery date.

Author(s)

Chao He

See Also

InputMatrixFormatted, MICC_1.0-package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
library(MICC)

## Import data
data(TestData)

# format the data
data_formatted <- InputMatrixFormatted(TestData)

# train the model
Par <- MICCMainLearn( data_formatted, reltol=1e-5, step=200 )

# compute FDR
params <- Par$params
PostProb <- Par$PostProb
fdr <- FDRcompute( data_formatted, params, PostProb[,1] )

## The function is currently defined as
function (data_formatted, params, PostProb) 
{
    fdr <- FDRestimate(data, params, PostProb)
    fdr
  }

rakarnik/MICC documentation built on May 31, 2019, 10:36 a.m.