# Estimate Kinship and FST under Arbitrary Population Structure

## Documentation for package ‘popkin’ version 1.3.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

popkin-package | A package for estimating kinship and FST under arbitrary population structure
fst | Calculate FST from a population-level kinship matrix or vector of inbreeding coefficients
inbr | Extract inbreeding coefficients from a kinship matrix
inbr_diag | Replace kinship diagonal with inbreeding coefficients
mean_kinship | Calculate the weighted mean kinship
n_eff | Calculates the effective sample size of the data
plot_popkin | Visualize one or more kinship matrices
popkin | Estimate kinship from a genotype matrix and subpopulation assignments
pwfst | Estimate the individual-level pairwise FST matrix
rescale_popkin | Rescale kinship matrix to set a given kinship value to zero.
validate_kinship | Validate a kinship matrix
weights_subpops | Get weights for individuals that balance subpopulations
_PACKAGE | A package for estimating kinship and FST under arbitrary population structure