Results can differ from 0.5.0 in two ways. To reproduce 0.5.0, use
dim_retention = "variance" and read B for position from
b_position_norm.
dim_retention = "msd" is the
default in asc_paired(),
asc_pairwise(), asc_baseline() and
assess_functional_space(). It keeps the number of axes (2
to 10) whose Euclidean distances best reproduce the trait distances
(minimum mean squared deviation; Maire et al. 2015), instead of the axes
needed to reach 80% of the variance, a threshold with no justification
of its own. In the validation it kept null models A and B calibrated for
dispersion and volume, in paired contrasts and in the global test, where
the 80% rule was too conservative for B in small species pools.
print() and summary() show the rule used.asc_pairwise() uses the equivalent statistic (variance of
the community centroids along each axis divided by its null mean, summed
over axes). The row of B for position in null_models refers
to the new statistic. The permutations are those of 0.5.0 (same seed,
same permutations), and B with the old statistic is kept in the new
element b_position_norm.Which trait changed. asc_null()
returns trait_shifts: for each trait, the change of its
abundance-weighted mean in the units of the trait and in null standard
deviations, from the same permutations of B. Each level of a categorical
trait is used as a 0/1 indicator (“Diet = fruit”), whose change is the
change in the share of abundance of species with that level.
summary() names the trait with the largest standardised
shift. It is descriptive (no p-value): correlated traits move together,
so it points to a group of related traits.
Permutation within blocks for null model A.
asc_paired() gains a blocks argument: one
label per sample naming the unit in which it was taken when both states
were sampled in matched units (the same months, plots or survey rounds).
A by samples, and A by entities by samples, then exchange samples
between the two states only within each block, so effects shared by the
samples of a block are removed from the test. Blocks do not correct
temporal autocorrelation of consecutive samples of the same state
(pseudoreplication), which makes A liberal whatever the permutation. All
allocations are enumerated when there are at most n_perm of
them. asc_null() reports blocks that contain only one
state, stops when no block contains both, and warns when there are too
few allocations to reach p <= 0.05.
Adjusted p-values. asc_null() gains
p_adjust (default "BH", Benjamini-Hochberg;
any method of stats::p.adjust(), or "none").
The new column P_adj of null_models adjusts,
within each contrast and test, the p-values of the three layers used for
interpretation (upper tail for position and for the global test;
two-tailed for dispersion and volume).
Choice of two-tailed convention.
asc_null() gains two_sided:
"centred" (default, as in 0.5.0: distance to the null mean)
or "doubled" (twice the smaller tail). Both tails are
always reported.
null_settings$permutation records, for each
contrast, how samples were permuted for A (individuals, free or within
blocks), the number of blocks and of possible allocations, whether all
were enumerated, and the smallest attainable p-value for
position.
assess_functional_space() now returns, and
summary() prints, the mSD and the correlation for 1 to 10
axes.
Orthogonal part of the leverage.
asc_transitions() adds the column Orthogonal
to species_leverage: the size of the part of each species’
contribution that is perpendicular to the displacement, so that a small
leverage is not read as a small change.
Volume with unequal numbers of samples.
asc_paired() adds Delta_FRic_rarefied (and
n_samples) to site_results: Delta FRic with
the same number of samples in both states, because FRic grows with the
number of samples. summary() shows it when it differs from
Delta FRic.
P_upper, P_lower), the two-tailed value for
dispersion and volume (P_two, centred on the null mean) and
the adjusted p-value (P_BH by default). The Reading column
uses the adjusted p-value, and a note says so. Another note names the
two-tailed convention used and how to obtain the other one.ascent_paired, ascent_pairwise,
ascent_baseline, ascent_space,
ascent_entities and ascent_transitions. New
objects also carry the 0.5.0 class (ascfcd,
ascfcd_pw, ascfcd_base,
ascfcd_space, ascfcd_entities,
ascfcd_transitions) as a second class, and objects saved
with 0.5.0 still work with print(), summary()
and plot(). The 0.5.0 names will be dropped in 0.6.0.Functional entities are documented as exploratory: only
replacement within an entity is seen (similar species in different
entities look like a change between entities, so a negative result does
not rule out redundancy), and in the validation the signal was weak
except for strong compensation. summary() says so. No code
changes.
The documentation of correction = "sqrt" no longer
recommends it when the space quality is low: it changes the distances
between species, and results with and without it are not
comparable.
Wording only: the three layers are now described as a characterization of functional restructuring rather than a decomposition, because they do not add up to a total. The package title changes accordingly. The species leverage and the between/within-entity split are still called decompositions, because they are exact additive decompositions. No code or results change.
asc_null() has been rewritten. The triad of null models
of 0.1.x (A0: Curveball, B0: SAD reshuffle, C0: trait shuffle; they were
called A, B and C in 0.1.x) is replaced by two null models, chosen after
a simulation study of their error rates and power:
stratum_size
species, default 5). Asks whether the change depends on which traits the
species have. Reported with both tails for position: the lower tail
flags compensation.asc_null(): null_models has
columns Contrast, Test, Layer,
Observed, Null_mean, Null_sd,
SES, P_upper, P_lower and
P_two (p-values are no longer rounded; they are
(b + 1) / (n + 1)). summary() reads each test
in words.asc_pairwise() objects, asc_null() now
runs one global test per layer over all communities
(instead of one p-value per pair): mean distance of the centroids to the
common centroid, and standard deviation of FDis and FRic among
communities. It also returns site_contribution.asc_transitions(): the default reference point is now
the midpoint between the two centroids (ref = "midpoint"),
which makes the result independent of which state is called the
reference. Use ref = "reference" for the 0.1.x values.
Species absent from both states are no longer listed.asc_null(entities = ): null model A on abundances
summed by functional entity, to tell replacement among similar species
from change in the functional groups themselves.asc_transitions() returns the partition of the shift
among shared, gained and lost species (with its range across reference
points) and, with entities, the exact split of the shift
between and within entities.asc_entities() chooses k by the mean
silhouette width when neither k nor h is
given, and reports the suggestions of the silhouette, Mojena’s rule and
the gap statistic.correction = "sqrt" (Gower 1971) in all functions that
build the functional space: makes the Gower distance Euclidean (quality
= 1). Use it when assess_functional_space() reports quality
below 0.8.type and weights are passed to
cluster::daisy() for ordinal, asymmetric binary or weighted
traits.seed in asc_null() and
asc_entities() no longer changes the user’s random number
stream.DESCRIPTION to ‘ASC-CFD’
(Assemblage Shift Characterization - Community Functional
Dynamics).\value tag in
plot.ascfcd_entities.Rd.asc_null()
to strictly comply with CRAN policies regarding .GlobalEnv
and .Random.seed manipulation.asc_paired(): Temporal/paired functional restructuring
(Layer 1-3).asc_pairwise(): Bidirectional spatial functional
divergence across all community pairs.asc_baseline(): Absolute functional topology (CWM,
FDis, FRic) for isolated communities.asc_null(): Hierarchical triad of null models A0, B0
and C0 (Structural/Curveball, Quantitative/SAD, Identity/Trait
Shuffle).asc_transitions(): Species-level Functional Leverage
decomposition.asc_entities(): Species clustering into discrete
functional entities.assess_functional_space(): Diagnostic tool for
evaluating PCoA quality before analysis..build_functional_space(),
.calc_core_topology()) shared across all modules.print(), summary(),
and plot() methods for all output types.(Labelled A, B and C in 0.1.x; written A0, B0 and C0 since 0.5.0, where A and B name the new null models.) * Model A0 (Structural): Curveball algorithm preserving richness and prevalence. * Model B0 (Quantitative): SAD reshuffle with fixed incidence. FRic reported as NA (hull invariant). * Model C0 (Identity): Trait shuffle breaking species-trait association.
testthat unit tests covering class structure, edge
cases, orthogonal scenarios, null model isolation, and leverage
additivity.