getAccRegion {poweRbal} | R Documentation |
Functions for computing the region of acceptance
Description
getAccRegion
- Computes the region of acceptance based on quantiles
for a specified level of significance and method. The critical region is
everything strictly outside this interval, i.e., the interval limits still
belong to the acceptance region.
getAccRegion_data
- Computes the region of acceptance for the
given TSS values based on quantiles for a specified level of significance and
method. The critical region is everything strictly outside this interval,
i.e., the interval limits still belong to the acceptance region.
Usage
getAccRegion(
tss,
null_model = "yule",
n,
distribs = "sampled",
sample_size = 1000L,
test_type = "two-tailed",
sig_lvl = 0.05
)
getAccRegion_data(tss_data, test_type = "two-tailed", sig_lvl = 0.05)
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 |
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). |
tss_data |
Numeric matrix of TSS values (one row per TSS). The row names are used as names for the TSS. |
Value
getAccRegion
Numeric matrix (one row per TSS) with two
columns for the interval limits of the acceptance region.
getAccRegion_data
Numeric matrix (one row per TSS) with two
columns for the interval limits of the acceptance region.
Author(s)
Sophie Kersting
Examples
getAccRegion(tss = c("Sackin", "Colless", "B1I"), n = 8L, sample_size = 100L)
getAccRegion_data(getTSSdata(tss = c("Colless", "Sackin"), n = 8L,
Ntrees = 20L, tm = "yule"))