Skip to contents

All functions

data_HGDP
Sample data from the Human Genome Diversity Project
data_TGP
Sample data from the 1000 Genomes Project
hello_world()
Hello world
map_HGDP
Corresponding tables for individuals and populations of the HGDP dataset
map_TGP
Corresponding tables for individuals and populations of the TGP dataset
plot_index_vs_K()
Plot the relationship between index and K
plot_loss()
Plot the loss function
plot_structure()
Plot the population proportion
psd_error()
Compute the prediction error
psd_fit_em()
Use EM algorithm to fit PSD model
psd_fit_sqp()
Use SQP algorithm to fit PSD model
psd_fit_svi()
Use SVI algorithm to fit PSD model
psd_fit_vi()
Use VI algorithm to fit PSD model
psd_loglikelihood()
Compute the loglikelihood
psd_loglikelihood_svi()
Compute the loglikelihood of svi method in validation set
psd_simulation()
Simulate data of PSD model