The GRM is a symmetric square matrix of dimension equal to the number of individuals.
Each entry can be interpreted as an estimated kinship coefficient between individuals, although some
authors might disagree.
Details
The Genetic Relationship Matrix (GRM) is computed by the formula ${1\over q}XX'$,
with $X$ the standardized genotype matrix and $q$ the number of SNPs
(ncol(x)).
Note that x needs to be standardized before this computation,
either by standardize(x) <- "p" or by standardize(x) <- "mu_sigma".