Generates parameters lambda and delta of Bilinear terms. Imported from earlier versions of AMBARTI package.

generate_gamma_delta(INDEX, Q)

Arguments

INDEX

describes number of genotypes I and environments J

Q

number of componentes captured by the bi linear term. (number of lambdas)

Value

a matrix n_genotypes by Q or n_environments by Q

Examples

n_genotypes<-4
n_environments<-3
generate_gamma_delta(I=n_genotypes,Q=2)
#>            [,1]        [,2]
#> [1,]  0.7471364  0.35504533
#> [2,]  0.1528396 -0.78382948
#> [3,] -0.5319910 -0.07511288
#> [4,] -0.3679849  0.50389703
generate_gamma_delta(I=n_environments,Q=2)
#>            [,1]       [,2]
#> [1,]  0.5411808  0.6113837
#> [2,]  0.2588834 -0.7743682
#> [3,] -0.8000642  0.1629845