This function estimate the coeffcient of T3 with null distribution generated by generate_null_distribution_T3. Please see Setp 2 in our manuscript for more information.

coefficient_estimate(null_distribution)

Arguments

null_distribution

Generated by generate_null_distribution_T3

Value

List of coefficient of alpha, beta and d.

Examples

null_distribution<-ThreeWayTest::generate_null_distribution_T3(m=6,n=1000,
cov_mat=diag(nrow = 6, ncol = 6), cutoff_value=c(0.2,0.4,0.6,0.8,1))
ThreeWayTest::coefficient_estimate(null_distribution[,1])
#> $alpha
#> [1] 0.9451683
#> 
#> $beta
#> [1] 0.4140883
#> 
#> $d
#> [1] 4.338006
#>