initQF: Initialize Q and F

Description Usage Arguments Value

Description

This function could help you initialize Q and F matrix conveniently especially when you intend to use supervised learning.

Usage

1
initQF(g, pop = NULL, alpha = NULL, K = NULL, model)

Arguments

g

genotype matrix

pop

A data.frame. If you intend to do supervised learning, you must specify the ancestries of the reference individuals.

alpha

Parameter for dirichlet distribution. Vector of shape parameters, or matrix of shape parameters corresponding to the number of draw.

K

If you intend to do unsupervised learning, set the number of populations you will use.

model

Choose supervised or unsupervised learning.

Value

A list contains q and f matrix.


radmixture documentation built on May 2, 2019, 6:11 a.m.