This function computes the KING-robust estimator of kinship.

gt_king(
  x,
  as_matrix = FALSE,
  block_size = bigstatsr::block_size(length(loci_names(x)))
)

Arguments

x

a gen_tibble object.

as_matrix

boolean, determining whether the results should be a square symmetrical matrix (TRUE), or a tidied tibble (FALSE, the default)

block_size

maximum number of loci read at once. More loci should improve speed, but will tax memory.

Details

Note that monomorphic sites are currently considered. What does PLINK do???