Calculation of T_eta with eta fixed.

T_eta(z_vector, cov_mat, eta)

Arguments

z_vector

Column vectorized data matrix with rows represent phenotype and columns represent genotype.

cov_mat

Estimated covariance matrix of z_vector.

eta

Truncated value.

Value

A numeric value represent calculated statistic T_eta.

Examples

z_vector<-MASS::mvrnorm(1,mu=rep(0,9),Sigma = diag(nrow = 9, ncol = 9))
ThreeWayTest::T_eta(z_vector=z_vector, 
cov_mat=diag(nrow = 9, ncol = 9), eta=0.5)
#> [1] 8.19376