Learn R Programming

updog (version 1.2.0)

compute_all_phifk: Computes $$\Phi^{-1}(F(k|K,\alpha_j,\rho_i))$$ for all possible (i,j,k).

Description

Computes $$\Phi^{-1}(F(k|K,\alpha_j,\rho_i))$$ for all possible (i,j,k).

Usage

compute_all_phifk(alpha, rho, ploidy)

Arguments

alpha

A vector whose jth element is the allele frequency of SNP j.

rho

A vector whose ith element is the inbreeding coefficient of individual i.

ploidy

The ploidy of the species.

Value

A three dimensional array. The rows index the individuals, the columns index the SNPs, and the third dimension indexes the genotypes. Computes the "continuous genotype".