Learn R Programming

coreTDT (version 1.0)

pvalue_calculator: compute p value for exact coreTDT

Description

compute all kinds of p values for exact coreTDT

Usage

pvalue_calculator(y1, y2, n1, n2, theta1 = 0.25, theta2 = 0.5) loglr_comp(x1, x2, n1, n2, theta1 = 0.25, theta2 = 0.5) loglr_comp_2side(x1, x2, n1, n2, theta1 = 0.25, theta2 = 0.5)

Arguments

y1
integer, N112
y2
integer, N122
n1
integer, N11
n2
integer, N12
theta1
float, probaliblity of N112 given N11
theta2
float, probaliblity of N122 given N12
x1
integer, N112
x2
integer, N122

Value

pvalue_pr
pvalues computed from probabaility model
pvalue_lr
pvalues from likelihood ratio test with restricted alternative hypothesis
pvalue_lr2
pvalues from likelihood ratio test