JABp {alphaN}  R Documentation 
Title
JABp(n, p, z = TRUE, df = NULL, method = "JAB", upper = 1)
n 
Sample size. 
p 
The pvalue. 
z 
Is the pvalue based on a z or tstatistic? TRUE if z. 
df 
If z=FALSE, provide the degrees of freedom for the tstatistic. 
method 
Used for the choice of 'b'. Currently one of:

upper 
The upper limit for the range of realistic effect sizes. Only relevant when method="balanced". Defaults to 1 such that the range of realistic effect sizes is uniformly distributed between 0 and 1, U(0,1). 
A numeric value for the BF in favour of H1.
# Transform a pvalue of 0.007038863 from a ztest into JAB
# using a sample size of 200.
JABp(200, 0.007038863)
# Transform a pvalue of 0.007038863 from a ttest with 190
# degrees of freedom into JAB using a sample size of 200.
JABp(200, 0.007038863, z=FALSE, df=190)