powerComp {poweRbal} | R Documentation |
Comparison of the power of TSS under different models
Description
powerComp
- Compare the power of a set of TSS to identify trees
generated under different alternative models given a null model.
Usage
powerComp(
tss,
null_model = "yule",
alt_models,
n,
distribs = "sampled",
sample_size = 1000L,
test_type = "two-tailed",
sig_lvl = 0.05,
with_CIradius = FALSE
)
Arguments
tss |
Vector containing the names (as character) of the tree shape
statistics that should be compared. You may either use the short names
provided in |
null_model |
The null model that is to be used to determine the power
of the tree shape statistics. In general, it must be a function that
produces rooted binary trees in |
alt_models |
List containing the alternative models that are to be
used to determine the power of the tree shape statistics. Functions that
produce rooted binary trees in |
n |
Integer value that specifies the desired number of leaves, i.e., vertices with in-degree 1 and out-degree 0. |
distribs |
Determines how the distributions and quantiles are computed.
Available are:
|
sample_size |
Sample size (integer >=10) if distributions are sampled (default= 1000L). |
test_type |
Determines the method. Available are:
|
sig_lvl |
Level of significance (default=0.05, must be >0 and <1). |
with_CIradius |
Determines if the radii for the 95%-confidence intervals of the power values should also be computed and returned (default = FALSE). |
Value
powerComp
Numeric matrix, one row per TSS and one
column per alternative model if with_CIradius
is FALSE (default).
Else a list with two such numeric matrices, the first for the power and the
second for the confidence interval radius.
Author(s)
Sophie Kersting
Examples
powerComp(tss = c("Sackin", "Colless", "B1I"),
alt_models = list(list("aldous",-1), "pda", "etm"), n=10L,
sample_size = 40L, with_CIradius = TRUE)