Description Usage Arguments Value Examples

Use quasi-Newton algorithm to accelerate EM or block relaxation.

1 |

`g` |
Genotype matrix with dimensions |

`q` |
Ancestry coefficient matrix with dimensions |

`f` |
Minor allele frequency matrix with dimensions |

`tol` |
Tolerance, the default value is 1e-4. |

`method` |
Choose which algorithm you want to use. EM or BR. |

`model` |
Choose which model you want to use. Supervised learning or unsupervised learning. |

Estimation results of q, f and the loglikelihood value of each iteration.

1 | ```
## qn(g, q, f, tol = 1e-4, method = 'BR', model = 'supervised')
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.