nContrast: nContrast

Description Usage Arguments Examples

Description

Depricated: estimate the probability a compound is from the neutral distribution

Usage

1
nContrast(x, a, b, mu0, n0, null.post, alternative, size, ROPE)

Arguments

x

an array of data

a

alpha paramter

b

beta parameter

mu0

mu ~ N(mu0, n0)

n0

mu ~ N(mu0, n0)

null.post

data.frame or data.table of a null posterior with column mu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
set.seed(7)
compound <- rnorm(2, 100, 10)
null.reference <- rnorm(32, 0, 10)
a <- 30
b <- 3100
mu0 <- 0.0
n0 <- 0.0001
size <- 20000

null.post <- nSample(null.reference, a, b, mu0, n0, size)
posterior <- nContrast(compound, a, b, mu0, n0, null.post, 
                       alternative='greater', size)
posterior

BenjaminChittick/BenCScore documentation built on May 5, 2019, 2:41 p.m.