preml | R Documentation |
Given either a tuple of sum-of-squares matrices or a dataframe, computes preudo-REML estimates for the covariances.
preml_1way(Mw, r, Mb, n) preml_2way_mat(M1, I1, M2, I2, M3, I3) preml_2way_df(df, ...)
Mw, Mb |
Sum-of-squares within and between matrices. |
r, n |
Number individuals per group and groups. |
M1, M2, M3 |
Sum-of-squares matrices within sire, dam and individual groups. |
I1, I2, I3 |
Number of sires, dams per sire and individuals per dam. |
df |
Data frame for 2-way design. |
... |
Other arguments. |
The pseudo-REML estimates are non-negative definite estimates of the relevant covariance matrices as described in [1]. These are not the exact REML estimates, but coincide with them in the MANOVA estimates are non-negative definite.
A list with entries
in the one-way case: Sb
, Sw
, which are the estimates of
the between-groups and within-groups covariance matrices.
in the two-way case: S1
, S2
and S3
, which are the estimates of
the sires, dams and individual covariance matrices.
[1] Y. Amemiyah. "What Should be Done When an Estimated between-Group Covariance Matrix is not Nonnegative Definite?" In The Americal Statistician 39.2 (1985).
preml_2way
for generic version.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.