The ascent package implements the
ASC-CFD (Assemblage Shift Characterization — Community
Functional Dynamics) framework. Communities can show the same amount of
functional turnover while following very different trajectories: one
moves to another region of trait space, another redistributes abundance
internally, a third gains or loses extreme phenotypes.
ascent separates these processes into three layers measured
in a functional space (PCoA of Gower distances between species
traits):
Table 1. The three layers of ASC-CFD.
| Layer | Metric | Ecological question |
|---|---|---|
| Position | ΔC | Where is the community moving? |
| Dispersion | ΔFDis | How is abundance being redistributed? |
| Volume | ΔFRic | Are functional boundaries expanding or collapsing? |
Each layer is tested against two null models that ask different questions:
blocks, Part III).summary() also names the trait
whose abundance-weighted mean moved most; this is descriptive, not a
test.Table 2. Reading A and B together.
| A | B | Reading |
|---|---|---|
| no | — | no evidence of change beyond sampling |
| yes | upper tail | change beyond sampling, directed by traits |
| yes | no | change beyond sampling without detectable trait structure |
The lower tail of B (less change than expected from the traits) had little power to detect compensation in the validation, so it is shown for description only, in paired contrasts and in the global test; functional entities (Part V) allow an exploratory look at replacement among similar species.
assess_functional_space() (Part II).asc_paired()
(a reference and a comparison state at each site, Part III) or
asc_pairwise() (many communities, Part VI). Give replicate
samples if you have them, and blocks if both states were
sampled in matched units.asc_null() and
read summary().asc_transitions() and plot() (Part IV).asc_entities() (Part V).The package includes birds_sim, a simulated data set: 24
bird species with four traits (two continuous, two categorical) and
counts of individuals. Two sites were surveyed five times before and
five times after an event. At Logged, forest-dependent and
fruit-eating species decline and small open-habitat species increase; at
Control nothing changes, so any difference there is
sampling noise. A second matrix holds five communities along a landscape
gradient.
library(ascent)
# birds_sim is loaded with the package
traits <- birds_sim$traits # species x traits (categorical traits as factors)
counts <- birds_sim$counts # surveys x species, counts of individuals
samples <- birds_sim$samples # site and time of each survey
head(traits)
#> Body_Mass Beak_Length Diet Forest_Dep
#> Bird_01 90.5 24.0 seeds yes
#> Bird_02 88.0 23.5 insects yes
#> Bird_03 64.4 15.7 fruit yes
#> Bird_04 15.4 7.3 fruit yes
#> Bird_05 65.0 13.2 insects yes
#> Bird_06 31.3 13.9 seeds yes
table(samples$site, samples$time)
#>
#> After Before
#> Control 5 5
#> Logged 5 5Abundances must be counts of individuals (whole numbers): null model A needs them. Species are matched to traits by name, so the column order does not matter.
All functions build the same functional space: a PCoA of the Gower distances between species traits. Check it before any analysis:
q <- assess_functional_space(traits)
q
#> ==================================================
#> Functional Space Diagnostic (ascent)
#> ==================================================
#>
#> Species: 24
#> Traits: 4
#> PCoA Quality: 84.5%
#> Axes Retained: 3 (93.8% variance; rule: msd)
#> Negative Eigenvalues: 12 (15.5% of total)
#>
#> Quality is adequate for analysis.
summary(q)
#> ==================================================
#> Functional Space Diagnostic (ascent)
#> ==================================================
#>
#> Species: 24
#> Traits: 4
#> PCoA Quality: 84.5%
#> Axes Retained: 3 (93.8% variance; rule: msd)
#> Negative Eigenvalues: 12 (15.5% of total)
#>
#> Quality is adequate for analysis.
#>
#> --- Per-Axis Variance ---
#> Axis Variance Cumul
#> Axis_1 61.10 61.10
#> Axis_2 20.36 81.46
#> Axis_3 12.30 93.77
#>
#> --- Fidelity of the reduced space (Maire et al. 2015) ---
#> k mSD r Best
#> 1 0.02880 0.847
#> 2 0.00745 0.941
#> 3 0.00433 0.977 <- min mSD (k >= 2)
#> 4 0.00524 0.983
#> 5 0.00562 0.984
#> 6 0.00593 0.984
#> 7 0.00593 0.985
#> 8 0.00598 0.986
#> 9 0.00599 0.986
#> 10 0.00599 0.986
#>
#> --- Full Eigenvalue Spectrum ---
#> Positive: 11 | Negative: 12 | Total: 24Number of axes. By default
(dim_retention = "msd") the package keeps the number of
axes, from 2 to 10, whose distances best reproduce the trait distances:
the lowest mSD in the table (Maire et al. 2015). print()
and summary() of every result say how many axes were kept
and with which rule. More axes describe the traits better, but FRic can
only be computed in samples with more species than retained axes.
Versions up to 0.5.0 kept the axes needed to reach 80 % of the variance;
dim_retention = "variance" reproduces them.
Quality. The share of positive eigenvalues. Below
0.8 the package warns: review the traits first (many missing values,
redundant or badly coded traits). correction = "sqrt"
(Gower 1971) makes the space Euclidean, but it changes the distances
between species, so results with and without it are not comparable, and
its effect on the tests has not been evaluated.
asc_paired() compares a reference state with a later
state at each site. Here each site is surveyed five times in each state,
so the surveys act as replicates and null model A permutes whole surveys
between states (accounting for variation between surveys).
res <- asc_paired(traits, counts,
sites = samples$site, time = samples$time,
ref_time = "Before")
res <- asc_null(res, n_perm = 199, seed = 1)
summary(res)
#> ==================================================
#> ASC-CFD: Multidimensional Functional Restructuring
#> ==================================================
#>
#> Number of Contrasts: 2
#> Functional Dimensionality (k): 3 (rule: mSD; explaining 93.8% of variance)
#> PCoA Quality: 84.5%
#>
#> --- Functional Shift Overview ---
#> Contrast Layer1_rDeltaC Layer2_DeltaFDis Layer3_DeltaFRic
#> Logged 20.99 0.0247 -8e-04
#> Control 0.53 -0.0004 0e+00
#>
#> --- Null Models (A: sampling | B: traits, stratified) ---
#> Contrast Test Layer Observed SES P_upper P_lower P_two P_BH
#> Logged A_samples Position 0.2077000 4.44 0.005 1 - 0.0075
#> Logged A_samples Dispersion 0.0247300 2.45 0.005 1 0.005 0.0075
#> Logged A_samples Volume -0.0008088 -4.63 1 0.015 0.015 0.015
#> Logged B_stratified Position 9.6210000 2.71 0.01 0.995 - 0.03
#> Logged B_stratified Dispersion 0.0247300 0.99 0.185 0.82 0.37 0.555
#> Logged B_stratified Volume -0.0008088 0.09 0.705 0.535 1 1
#> Control A_samples Position 0.0052830 -1.05 0.88 0.125 - 0.88
#> Control A_samples Dispersion -0.0003668 -0.22 0.595 0.41 0.78 0.88
#> Control A_samples Volume 0.0000000 NaN - - - -
#> Control B_stratified Position 1.1850000 -0.74 0.745 0.26 - 0.985
#> Control B_stratified Dispersion -0.0003668 -0.02 0.545 0.46 0.985 0.985
#> Control B_stratified Volume 0.0000000 NaN - - - -
#> Reading
#> larger than sampling
#> increase beyond sampling
#> decrease beyond sampling
#> directed by traits
#> no evidence
#> no evidence
#> no evidence
#> no evidence
#> no evidence
#> no evidence
#> no evidence
#> no evidence
#>
#> P_upper, P_lower: one-tailed p-values (not adjusted). P_two: two-tailed (not adjusted), centred on the null mean.
#> P used: P_upper for position; P_two for dispersion and volume.
#> P_BH: the P used, adjusted (BH) across the three layers of each test and contrast.
#> Reading: based on the adjusted p-value (P_BH).
#> Other two-tailed convention: 2 x min(P_upper, P_lower), or asc_null(..., two_sided = "doubled").
#>
#> B, position: sum over axes of the squared shift of the centroid in units of its null
#> standard deviation (about the number of axes when there is no change). Each axis counts
#> in units of its own chance variation, so changes along minor axes are detected as well as
#> along the first axis. ||Delta C|| is in row A; B with ||Delta C|| (as in 0.5.0) is kept in
#> $b_position_norm.
#>
#> --- Trait with the largest standardised shift (descriptive) ---
#> Logged: Forest_Dep = yes (change of its share of abundance = -0.451; 3.1 null SD)
#> Control: Body_Mass (change of its weighted mean = +1.57; 0.7 null SD)
#> About 1 null SD or less is chance level; it is a description, not a test.
#> Correlated traits move together: read it as the group of traits that changed.
#> Categorical traits are shown by level ("trait = level"). All traits: $trait_shifts.
#>
#> --- Permutation used for A ---
#> Logged, A_samples: whole samples permuted freely: 252 allocations (random sample).
#> Control, A_samples: whole samples permuted freely: 252 allocations (random sample).
#> Free permutation assumes that samples are exchangeable between states. If both states
#> were sampled in matched units (same months, plots), give them as 'blocks' in asc_paired().
#> Consecutive samples of a before/after design are not exchangeable: A is then liberal.
#>
#> Guide: A no -> no evidence of change beyond sampling | A yes + B upper -> directed by traits |
#> A yes + B no -> change beyond sampling without detectable trait structure.
#> Entities (exploratory): many within-entity shifts (asc_transitions) with A_entities no are
#> consistent with replacement among similar species within entities; replacement between species of
#> different entities looks like a change between entities, so a 'no' does not rule out redundancy.
#> The lower tail of B is shown for description only (little power for compensation).
#> B is slightly liberal for dispersion, for evenness changes and for individuals captured in groups:
#> treat P close to 0.05 with caution.
#>
#> --- Top Functional Drivers (Leverage, midpoint reference) ---
#> Logged: Bird_20 (+0.07), Bird_17 (+0.03), Bird_04 (+0.03), Bird_11 (+0.02), Bird_18 (+0.01)
#> Control: no species with leverage >= 0.005n_perm = 199 keeps the vignette fast; use 999 for
research. A by samples can only produce as many distinct results as
there are ways of splitting the surveys between the two states: with 5
surveys per state there are choose(10, 5) = 252; with 4
there would be only 70 (all of them are enumerated when they are fewer
than n_perm), and because swapping the two groups gives the
same distance, the smallest possible P for position would be 2/70 ≈
0.03. With few replicates, A has a floor on its p-values.
How to read summary(). The first table
gives the size of each change (Layer1_rDeltaC: centroid
shift as % of the functional space; Layer2_DeltaFDis;
Layer3_DeltaFRic). The table of null models gives one row
per test and layer, with a Reading in words. For B, the row
of position refers to the axis-standardised statistic: the shift along
each axis divided by its standard deviation under the null, squared and
summed over axes (about the number of axes when nothing changes), so its
Observed value is not ‖ΔC‖ (which is in the row of A). It
detects changes along minor axes as well as along the first one. B with
‖ΔC‖, the statistic up to 0.5.0, is kept in
res$b_position_norm. Below the table,
summary() names the trait whose abundance-weighted mean
moved most, in null standard deviations (all traits in
res$trait_shifts). Each level of a categorical trait counts
as one trait (“Diet = fruit”), and its change is the change in the share
of abundance of species with that level. About 1 null SD or less is
chance level; it is a description, not a test, and correlated traits
move together.
res$trait_shifts
#> Contrast Trait Type Delta Std_shift
#> 1 Logged Forest_Dep = yes level -0.451030328 -3.0726168
#> 2 Logged Diet = seeds level -0.017456956 -2.1063671
#> 3 Logged Diet = insects level 0.169113221 1.0359630
#> 4 Logged Diet = fruit level -0.151656265 -0.9379801
#> 5 Logged Beak_Length numeric 1.730695114 0.8662550
#> 6 Logged Body_Mass numeric 10.127784718 0.7463739
#> 7 Control Body_Mass numeric 1.573292001 0.6614080
#> 8 Control Forest_Dep = yes level 0.008049741 0.6506087
#> 9 Control Diet = seeds level 0.002598364 0.6364108
#> 10 Control Beak_Length numeric 0.140029336 0.4067097
#> 11 Control Diet = fruit level -0.005605171 -0.3034382
#> 12 Control Diet = insects level 0.003006807 0.1628770summary() shows, for each test, both one-tailed p-values
(P_upper, P_lower), the two-tailed value for
dispersion and volume (P_two, centred on the null mean) and
the p-value used for interpretation adjusted across the three layers of
each test (P_BH, Benjamini-Hochberg by default; argument
p_adjust). The other usual two-tailed convention, twice the
smaller tail, can be computed from the table as
pmin(1, 2 * pmin(P_upper, P_lower)).
A by samples assumes that surveys can be exchanged freely between the
two states. That is not true when both states were surveyed in matched
units, such as the same months, plots or survey rounds: surveys of the
same month share its weather, and free permutation then underestimates
the variation between months. Give that unit as blocks in
asc_paired(); A then exchanges surveys between the two
states only within each block. summary() reports which
permutation was used. Blocks remove effects shared by the surveys of a
block; they do not remove the temporal autocorrelation of consecutive
surveys of the same state, which makes A (like PERMANOVA) liberal
whatever the permutation: consecutive surveys are pseudoreplicates.
# Suppose the k-th survey before and after the event was made in the same survey round
round <- ave(seq_len(nrow(samples)), samples$site, samples$time, FUN = seq_along)
res_b <- asc_paired(traits, counts, sites = samples$site, time = samples$time,
ref_time = "Before", blocks = round)
res_b <- asc_null(res_b, n_perm = 199, seed = 1)
res_b$null_settings$permutation
#> Contrast Test Design Blocks Allocations Exact Min_P_position
#> 1 Logged A_samples blocks 5 32 TRUE 0.0625
#> 2 Control A_samples blocks 5 32 TRUE 0.0625With one survey of each state per block there are 2^B allocations for
B blocks (here 2^5 = 32, all enumerated). Because swapping the two
states in every block gives the same distance, the smallest attainable
p-value for position is 2/32 = 0.0625: with five matched pairs, A can
never reject at 0.05, and asc_null() warns about it. Six
matched pairs are the minimum (2/64 = 0.031); with eleven, as in a year
of monthly surveys, there are 2048 allocations (use
n_perm = 2048 to enumerate them all). Free permutation does
not have this floor, but it is not valid for matched surveys.
| Your design | What to use |
|---|---|
| One sample per state | A by individuals: it tests multinomial sampling error only |
| Replicates taken in matched units (same months, plots, rounds) | blocks = that unit |
| Independent replicates (spaced, not matched) | free permutation (no blocks) |
| Consecutive replicates (pseudoreplicates), matched or not | no permutation removes this dependence: A is liberal; space the samples or treat p-values as indicative |
Reading. At Logged, A gives P = 0.005
for the centroid shift and B gives P = 0.01. At Control,
where nothing changed in the simulation, A gives P = 0.88: no evidence
of change beyond sampling, as expected. Read B only where A detects a
change: its upper tail tells whether the change is organised by the
species’ traits.
At Logged, the volume shrank more than expected from
sampling: some species at the edge of the functional space disappeared.
At Control, the Volume rows show NA: the
convex hull (set by the extreme species) did not change, so ΔFRic is 0
in the data and in every permutation. FRic only responds when species at
the edges of the functional space appear or disappear.
asc_transitions() describes the change without p-values.
The leverage of a species is its contribution to the
centroid shift; leverages add up exactly to the shift. The
partition says how much of the shift comes from species
shared by both states, gained or lost; its range across reference points
shows how robust that split is.
tr <- asc_transitions(res)
summary(tr, n_sp = 5)
#> ==================================================
#> ASC-CFD: Functional Transitions
#> ==================================================
#>
#> Contrasts Analyzed: 2
#>
#> --- Logged (shift = 0.2077, reference point: midpoint) ---
#> Species Group Delta_p Projection Leverage Orthogonal
#> Bird_20 shared 0.2374 0.2746 0.0652 0.0330
#> Bird_17 shared 0.1159 0.2580 0.0299 0.0193
#> Bird_04 shared -0.0906 -0.2830 0.0256 0.0180
#> Bird_11 shared -0.0863 -0.2199 0.0190 0.0218
#> Bird_18 shared -0.0530 -0.2055 0.0109 0.0069
#> Partition of the shift:
#> Group Fraction Min_across_refs Max_across_refs
#> shared 0.994 0.992 0.996
#> gained 0.000 0.000 0.000
#> lost 0.006 0.004 0.008
#>
#> --- Control (shift = 0.0053, reference point: midpoint) ---
#> Species Group Delta_p Projection Leverage Orthogonal
#> Bird_17 shared -0.0143 -0.2679 0.0038 0.0042
#> Bird_11 shared 0.0104 0.1690 0.0018 0.0023
#> Bird_19 shared 0.0064 -0.2720 -0.0017 0.0017
#> Bird_21 shared 0.0192 0.0733 0.0014 0.0038
#> Bird_12 shared 0.0090 -0.1260 -0.0011 0.0053
#> Partition of the shift:
#> Group Fraction Min_across_refs Max_across_refs
#> shared 1 1 1
#> gained 0 0 0
#> lost 0 0 0
#>
#> A wide Min-Max range across reference points means the partition depends on the reference: interpret with caution.
plot(res, contrast = "Logged", type = "both", n_sp = 5)Positive leverage: the species pushes the centroid in the direction
of the change (it increased in the direction of the shift, or declined
on the opposite side). Negative leverage: the species resists the shift.
Leverage keeps only the part of each contribution that lies along the
shift; the column Orthogonal gives the perpendicular part,
so a species with small leverage and large Orthogonal did
change, but along another direction of the trait space.
Functional entities are groups of species with similar traits. They separate a change that reorganises the functional groups (shift between entities) from the replacement of species by functionally similar ones (shift within entities). This use is exploratory: only replacement within an entity is seen (similar species placed in different entities look like a change between entities), and in the validation the signal was weak except for strong compensation.
ent <- asc_entities(traits, k_max = 10, B = 50, seed = 1)
summary(ent)
#> ==================================================
#> ASC-CFD: Functional Entities Classification
#> ==================================================
#>
#> Total Species: 24 | Functional Entities: 6
#> Distance Metric: Gower | Clustering Method: ward.D2
#> Suggested k -> silhouette: 6 (max. mean silhouette 0.67) | Mojena: 4 | gap: 1
#> Silhouette guide: > 0.5 clear groups; 0.25-0.5 weak; < 0.25 no clear groups. Gap = 1: no natural groups.
#>
#> --- Species per Entity ---
#>
#> Entity_1 Entity_2 Entity_3 Entity_4 Entity_5 Entity_6
#> 3 10 5 3 2 1
#>
#> --- Classification Preview (Head) ---
#> Species Entity_ID Body_Mass Beak_Length Diet Forest_Dep
#> Bird_01 Entity_1 90.5 24.0 seeds yes
#> Bird_02 Entity_2 88.0 23.5 insects yes
#> Bird_03 Entity_3 64.4 15.7 fruit yes
#> Bird_04 Entity_3 15.4 7.3 fruit yes
#> Bird_05 Entity_2 65.0 13.2 insects yes
plot(ent)If k is not given, the number of entities with the
highest mean silhouette is used. Mean silhouette below 0.25 means no
clear groups; a gap statistic of 1 means the entities divide a continuum
(still useful, but check that conclusions hold for neighbouring values
of k).
Entities are used in the null models (A on counts summed by entity) and in the transitions (split between and within entities):
res_e <- asc_null(res, n_perm = 199, seed = 1, entities = ent)
res_e$null_models[res_e$null_models$Layer == "Position", c("Contrast", "Test", "SES", "P_upper")]
#> Contrast Test SES P_upper
#> 1 Logged A_samples 4.4407860 0.005
#> 4 Logged B_stratified 2.7112427 0.010
#> 7 Logged A_entities_samples 4.1953185 0.005
#> 10 Control A_samples -0.9484597 0.845
#> 13 Control B_stratified -0.7649305 0.775
#> 16 Control A_entities_samples -1.2267043 0.950
asc_transitions(res, entities = ent)$Logged$entities
#> Shift Between Within Within_fraction
#> 0.2077278764 0.2072868416 0.0004410347 0.0021231369Reading. If A is significant for species but not for
entities, and most of the shift is within entities, the change
is consistent with replacement by functionally similar species. The
converse does not hold: a small within fraction does not rule out
redundancy. Here 100 % of the shift at Logged occurs
between entities: the change reorganised the functional
groups.
asc_pairwise() describes all pairs of communities. With
many communities, one p-value per pair would multiply false alarms, so
asc_null() runs one global test per layer:
the mean distance of the community centroids to their common centroid,
and the standard deviation of FDis and FRic among communities. It also
reports how far each community lies from the common centroid.
pw <- asc_pairwise(traits, birds_sim$landscape)
pw <- asc_null(pw, n_perm = 199, seed = 1)
summary(pw)
#> ==================================================
#> ASC-CFD: Pairwise Spatial Functional Network
#> ==================================================
#>
#> Communities Analyzed: 5 | Spatial Contrasts: 10
#> Functional Dimensionality (k): 3 (rule: mSD; explaining 93.8% of variance)
#> PCoA Quality: 84.5%
#>
#> --- Global Divergence Summary ---
#> Mean Position Shift (rDelta_C): 12.24%
#> Mean Dispersion Shift (Delta_FDis): -0.0037
#> Mean Volume Shift (Delta_FRic): 0.0002
#>
#> --- Global Test Over All Communities (A: sampling | B: traits, stratified) ---
#> Contrast Test Layer Observed SES P_upper P_lower P_BH
#> Global A_global Position 0.0772400 7.94 0.005 1 0.015
#> Global A_global Dispersion 0.0158700 1.05 0.14 0.865 0.21
#> Global A_global Volume 0.0009605 -1.10 0.895 0.11 0.895
#> Global B_global_stratified Position 4.3270000 1.41 0.07 0.935 0.21
#> Global B_global_stratified Dispersion 0.0158700 -0.24 0.47 0.535 0.705
#> Global B_global_stratified Volume 0.0009605 -1.24 0.955 0.05 0.955
#> Reading
#> more variation than sampling
#> no evidence
#> no evidence
#> no evidence
#> no evidence
#> no evidence
#>
#> P_upper, P_lower: one-tailed p-values (not adjusted). The upper tail is used for all layers.
#> P_BH: the P used, adjusted (BH) across the three layers of each test and contrast.
#> Reading: based on the adjusted p-value (P_BH).
#>
#> B, position: sum over axes of the variance of the community centroids along each axis,
#> divided by its mean under the null (about the number of axes when there is no change).
#> Each axis counts in units of its own chance variation, so changes along minor axes are
#> detected as well as along the first axis. The mean distance to the common centroid is in
#> row A; B with that statistic (as in 0.5.0) is kept in $b_position_norm.
#>
#> --- Trait with the largest standardised shift (descriptive) ---
#> Global: Forest_Dep = yes (sd among communities of its share of abundance = 0.19; 2.0 times its null value)
#> About 1 times its null value is chance level; it is a description, not a test.
#> Correlated traits move together: read it as the group of traits that changed.
#> Categorical traits are shown by level ("trait = level"). All traits: $trait_shifts.
#>
#> --- Distance of Each Community to the Common Centroid ---
#> Community Distance_to_common_centroid Fraction
#> Primary 0.1259 0.3259
#> Farmland 0.1085 0.2809
#> Old_secondary 0.0657 0.1701
#> Agroforest 0.0636 0.1648
#> Young_secondary 0.0225 0.0583
#>
#> Guide: A no -> the communities do not differ more than samples of one community |
#> A yes + B yes -> variation among communities organised by traits |
#> A yes + B no -> variation beyond sampling without detectable trait structure.
#> The lower tail of B is shown for description only.
#>
#> --- Top Functional Drivers (Leverage, midpoint reference - Head) ---
#> Primary_vs_Old_secondary: Bird_20 (+0.03), Bird_11 (+0.01), Bird_17 (+0.01), Bird_18 (+0.01)
#> Primary_vs_Young_secondary: Bird_20 (+0.06), Bird_17 (+0.04), Bird_11 (+0.02), Bird_18 (+0.01), Bird_01 (-0.01)
#> Primary_vs_Agroforest: Bird_20 (+0.07), Bird_11 (+0.03), Bird_17 (+0.02), Bird_04 (+0.02), Bird_09 (+0.01)
#> Primary_vs_Farmland: Bird_20 (+0.07), Bird_17 (+0.04), Bird_11 (+0.03), Bird_18 (+0.02), Bird_04 (+0.02)
#> Old_secondary_vs_Young_secondary: Bird_20 (+0.03), Bird_17 (+0.02), Bird_09 (+0.01), Bird_12 (-0.01), Bird_15 (+0.01)
#>
#> (first 5 of 10 pairs; see asc_transitions())
plot(pw, contrast = "Primary_vs_Farmland", type = "both", n_sp = 5)All layers of the global test are read from the upper tail. A: the
communities differ more than samples of one community would. B: the
variation among communities is organised by traits; for position it uses
the axis-standardised statistic (the variance of the community centroids
along each axis divided by its value under the null, summed over axes).
The lower tail of B is shown for description only.
summary() also names the trait whose weighted mean varies
most among communities.
asc_baseline() reports the absolute metrics (CWM, FDis,
FRic) of each community, without contrasts.
summary(asc_baseline(traits, birds_sim$landscape))
#> ==================================================
#> ASC-CFD: Baseline Functional Topology
#> ==================================================
#>
#> Entities Analyzed: 5
#> Functional Dimensionality (k): 3 (rule: mSD; explaining 93.8% of variance)
#> PCoA Quality: 84.5%
#>
#> --- Absolute Entity Metrics ---
#> Entity CWM_Axis_1 CWM_Axis_2 CWM_Axis_3 FDis FRic
#> Primary 0.0102 0.0007 -0.0222 0.3139 0.0737
#> Old_secondary 0.0139 0.0691 -0.0253 0.3279 0.0712
#> Young_secondary 0.0560 0.1394 -0.0181 0.3309 0.0729
#> Agroforest 0.1011 0.1636 -0.0117 0.3393 0.0729
#> Farmland 0.1094 0.2121 -0.0079 0.2990 0.0733Table 3. Functions of ascent.
| Objective | Function |
|---|---|
| Quality of the functional space | assess_functional_space() |
| Paired (temporal) contrasts | asc_paired() |
| All pairs of communities | asc_pairwise() |
| Null models A and B, global test | asc_null() |
| Species leverage and partition | asc_transitions() |
| Functional entities | asc_entities() |
| Absolute metrics per community | asc_baseline() |
stratum_sizeNull model B shuffles traits among groups of
stratum_size species of similar abundance (default 5). In
the validation, groups of 5 and of 10 species behaved almost
identically, whereas shuffling among all species of the contrast
(stratum_size = Inf) was biased in a real trait space (up
to 12 % false positives for FRic, and too conservative for position); it
is not recommended. Stratification calibrates B; it does not make it
more powerful. Rerunning with neighbouring values (e.g. 3 or 10) checks
that conclusions do not depend on it. As a rule of thumb (not evaluated
by simulation), use 3 when samples have fewer than 10 species and 5 to
10 when they have more than 60.
blocks remove effects shared by a
block, not this dependence.P_adj (shown as P_BH
in summary()) adjusts the three layers of each test within
each contrast. Contrasts are not adjusted against each other; to do so,
apply p.adjust() to the p-values of interest in
null_models.P_two is centred on the null mean.
With asymmetric null distributions it can differ from twice the smaller
tail; both tails are always reported so that either convention can be
used.FRic is the volume of the convex hull in the retained axes. It
depends only on extreme species and is not abundance-weighted: interpret
ΔFRic as a descriptor of the functional boundary, complementary to
ΔFDis. When a community has no more species than retained axes, FRic is
NA.
Only the positional shift (rΔC %) is normalised by the regional functional diameter and comparable across studies. ΔFDis and ΔFRic are absolute differences in the retained space.
\[\sum_{i=1}^{S} \text{Leverage}_i = \|\Delta C\|, \qquad \text{Leverage}_i = \Delta p_i \, (\mathbf{f}_i - \mathbf{r}) \cdot \hat{v}\]
where \(\Delta p_i\) is the change in relative abundance, \(\mathbf{f}_i\) the species’ coordinates, \(\hat{v}\) the unit vector of the shift and \(\mathbf{r}\) the reference point (by default the midpoint between the two centroids). The total does not depend on \(\mathbf{r}\); how it is shared among species does.