KronMean

class glimix_core.mean.KronMean(A, X)[source]

Kronecker mean function, (A⊗X)vec(B).

Let

  • n be the number of samples;

  • p the number of traits; and

  • c the number of covariates.

The mathematical representation is

𝐦 = (A⊗X)vec(B)

where A is a p×p trait design matrix of fixed effects and X is a n×c sample design matrix of fixed effects. B is a c×p matrix of fixed-effect sizes.

__init__(A, X)[source]

Constructor.

Parameters
  • A (array_like) – p×p array.

  • X (array_like) – n×c array.

Methods

__init__(A, X)

Constructor.

gradient()

Gradient of the linear mean function.

value()

Kronecker mean function.

Attributes

A

Matrix A.

AX

A ⊗ X.

B

Effect-sizes parameter, B.

X

Matrix X.

name

Name of this function.

nparams

Number of parameters.