Learn R Programming

bnpsd (version 1.1.1)

q1d-deprecated: Construct admixture proportion matrix for 1D geography

Description

Construct admixture proportion matrix for 1D geography

Usage

q1d(n, k, sigma, a = 0.5, b = k + 0.5, s, F, Fst)

Arguments

n

Number of individuals

k

Number of intermediate subpopulations

sigma

Spread of intermediate subpopulations (standard deviation of normal densities).

a

Location of first individual

b

Location of last individual

OPTIONS FOR BIAS COEFFICIENT VERSION

s

The desired bias coefficient, which specifies \(\sigma\) indirectly. Required if sigma is missing

F

The vector of inbreeding coefficients of the intermediate subpopulations, up to a scaling factor (which cancels out in calculations). Required if sigma is missing

Fst

The desired final \(F_{ST}\) of the admixed individuals. Required if sigma is missing

Value

If sigma was provided, the \(n \times k\) admixture proportion matrix \(Q\). If sigma is missing, a named list is returned containing Q, the rescaled F, and the sigma that together give the desired \(s\) and final \(F_{ST}\) of the admixed individuals.

See Also

bnpsd-deprecated