View source: R/calc_marginal_llk.R
calc_marginal_llk | R Documentation |
Function to calculate the log marginal likelihood of a given partition
calc_marginal_llk(sparse.data, partition)
sparse.data |
a sparse SNP data object returned from import_fasta_sparse_nt |
partition |
the partition for which the log marginal likelihood is to be calculated |
the log marginal likelihood
fasta.file.name <- system.file("extdata", "seqs.fa", package = "fastbaps") sparse.data <- import_fasta_sparse_nt(fasta.file.name) partition <- 1:ncol(sparse.data$snp.matrix) calc_marginal_llk(sparse.data, partition)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.