parEstimate | R Documentation |
parEstimate
is a wrapper of the function
dirmult
with default settings for init
,
initscalar
, epsilon
, trace
and mode
. It allows
the input obj
to be either a matrix
or a
TreeSummarizedExperiment
and outputs the estimated values of
pi
and theta
.
parEstimate(obj, assay = NULL)
obj |
A matrix or |
assay |
If |
A list including the estimates of pi
(a vector with one
element per row in obj
) and theta
(a scalar).
Ruizhu Huang, Charlotte Soneson
suppressPackageStartupMessages({
library(TreeSummarizedExperiment)
})
set.seed(1L)
y <- matrix(rnbinom(200, size = 1, mu = 10), nrow = 10)
colnames(y) <- paste("S", seq_len(20), sep = "")
rownames(y) <- tinyTree$tip.label
toy_tse <- TreeSummarizedExperiment(rowTree = tinyTree,
assays = list(y))
res <- parEstimate(obj = toy_tse)
metadata(res)$assays.par
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.