View source: R/ss_mats.r View source: R/ss_halfsib.R
ss_mats | R Documentation |
Given a dataframe of half-sib responses y[ijk], computes the following matrices: These matrices are given by
M[A] = (JK)/(I-1) * Σ (mu[i] - mu)(mu[i] - mu)'
M[B] = K/(I(J-1)) * Σ (mu[ij] - mu[i]) (mu[ij] - mu[i])'
M[E] = 1/(IJ(K-1) * Σ (mu[ijk] - mu[ij]) (mu[ijk] - mu[ij])',
and satisfy
E(M[E]) = E, E(M[B]) = E + K B, E(M[A]) = E + K B + JK A,
ss_mats(df)
df |
Half-sib data frame with column names |
where A, B, E are the population covariance matrices of the sires, dams and individuals respectively.
A list with the following entries:
m_ind
, m_dam
, m_sire
: The matrices S_E, S_B and S_A respectively
q
: The dimensionality of the responses
I
, J
, K
: The number of sires, dams per sire and individuals per dam
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.