get_delta_stats | R Documentation |
There are three tests, on effects of 1. the shape of the SAD, 2. treatment/group-level density, 3. degree of aggregation. The user can specifically to conduct one or more of these tests.
get_delta_stats(
mob_in,
env_var,
group_var = NULL,
ref_level = NULL,
tests = c("SAD", "N", "agg"),
spat_algo = NULL,
type = c("continuous", "discrete"),
stats = NULL,
inds = NULL,
log_scale = FALSE,
min_plots = NULL,
density_stat = c("mean", "max", "min"),
n_perm = 1000,
overall_p = FALSE
)
mob_in |
an object of class mob_in created by make_mob_in() |
env_var |
a character string specifying the environmental variable in
|
group_var |
an optional character string
in |
ref_level |
a character string used to define the reference level of
|
tests |
specifies which one or more of the three tests ('SAD', N', 'agg') are to be performed. Default is to include all three tests. |
spat_algo |
character string that can be either: |
type |
"discrete" or "continuous". If "discrete", pair-wise comparisons are conducted between all other groups and the reference group. If "continuous", a correlation analysis is conducted between the response variables and env_var. |
stats |
a vector of character strings that specifies what statistics to
summarize effect sizes with. Options include: |
inds |
effort size at which the individual-based rarefaction curves are
to be evaluated, and to which the sample-based rarefaction curves are to be
interpolated. It can take three types of values, a single integer, a vector
of integers, and NULL. If |
log_scale |
if "inds" is given a single integer, "log_scale" determines the position of the points. If log_scale is TRUE, the points are equally spaced on logarithmic scale. If it is FALSE (default), the points are equally spaced on arithmetic scale. |
min_plots |
minimal number of plots for test 'agg', where plots are randomized within groups as null test. If it is given a value, all groups with fewer plots than min_plot are removed for this test. If it is NULL (default), all groups are kept. Warnings are issued if 1. there is only one group left and "type" is discrete, or 2. there are less than three groups left and "type" is continuous, or 3. reference group ("ref_group") is removed and "type" is discrete. In these three scenarios, the function will terminate. A different warning is issued if any of the remaining groups have less than five plots (which have less than 120 permutations), but the test will be carried out. |
density_stat |
reference density used in converting number of plots to numbers of individuals, a step in test "N". It can take one of the three values: "mean", "max", or "min". If it is "mean", the average plot-level abundance across plots (all plots when "type" is "continuous, all plots within the two groups for each pair-wise comparison when "type" is "discrete") are used. If it is "min" or "max", the minimum/maximum plot-level density is used. |
n_perm |
number of iterations to run for null tests, defaults to 1000. |
overall_p |
Boolean defaults to FALSE specifies if overall across scale p-values for the null tests. This should be interpreted with caution because the overall p-values depend on scales of measurement yet do not explicitly reflect significance at any particular scale. |
a "mob_out" object with attributes
Dan McGlinn and Xiao Xiao
rarefaction
data(inv_comm)
data(inv_plot_attr)
inv_mob_in = make_mob_in(inv_comm, inv_plot_attr, coord_names = c('x', 'y'))
inv_mob_out = get_delta_stats(inv_mob_in, 'group', ref_level='uninvaded',
type='discrete', log_scale=TRUE, n_perm=3)
plot(inv_mob_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.