Skip to contents

Polya-tree Bayes factor for H0: F = N(loc, scale^2).

Usage

morie_ghosal_np_testing(x, ref_loc = 0, ref_scale = 1, depth = 6, c = 1)

Arguments

x

Numeric data vector.

ref_loc

Numeric reference location (default 0).

ref_scale

Numeric reference scale (default 1).

depth

Integer Polya-tree depth (default 6).

c

Numeric Polya-tree concentration (default 1).

Value

Named list with statistic (log BF), p_value, BF10, log_BF10, n, depth, method.

Examples

morie_ghosal_np_testing(x = rnorm(50))
#> $statistic
#> [1] -209.4717
#> 
#> $p_value
#> [1] 0.5
#> 
#> $BF10
#> [1] 1.065568e-91
#> 
#> $log_BF10
#> [1] -209.4717
#> 
#> $n
#> [1] 50
#> 
#> $depth
#> [1] 6
#> 
#> $method
#> [1] "Polya-tree Bayes-factor test (Berger-Guglielmi)"
#>