This function was deprecated, please use estimate_roc().
Usage
fc_estimate_RoC(
data_source_community,
data_source_age,
age_uncertainty = NULL,
smooth_method = c("none", "m.avg", "grim", "age.w", "shep"),
smooth_n_points = 5,
smooth_N_points = lifecycle::deprecated(),
smooth_age_range = 500,
smooth_n_max = 9,
smooth_N_max = lifecycle::deprecated(),
working_units = c("levels", "bins", "MW"),
Working_Units = lifecycle::deprecated(),
bin_size = 500,
number_of_shifts = 5,
Number_of_shifts = lifecycle::deprecated(),
bin_selection = c("random", "first"),
standardise = FALSE,
n_individuals = 150,
N_individuals = lifecycle::deprecated(),
dissimilarity_coefficient = c("euc", "euc.sd", "chord", "chisq", "gower", "bray"),
DC = lifecycle::deprecated(),
tranform_to_proportions = TRUE,
rand = NULL,
use_parallel = FALSE,
interest_threshold = NULL,
time_standardisation = NULL,
verbose = FALSE
)Arguments
- data_source_community
data.frame. Community data with taxa as columns and samples as rows. The first column must be namedsample_id(character).- data_source_age
data.framewith two columns:sample_id- unique identifier of each level (character)age- age of the level (numeric)
- age_uncertainty
Optional age-uncertainty matrix from an age-depth model. Either:
A
matrixwith one column per sample and one row per age sequence drawn from a posterior age-depth model. One row is randomly selected at the start of each randomisation run. Used only whenrandis set; withrand = NULL, the single run uses the point ages.NULL(default) - age uncertainties are not used.
- smooth_method
character. Smoothing method applied to each taxon before RoC is computed."none"- no smoothing (default)"shep"- Shepard's 5-term filter (Davis, 1986; Wilkinson, 2005)"m.avg"- moving average"age.w"- age-weighted average"grim"- Grimm's smoothing (Grimm & Jacobson, 1992). The window of each sample starts with thesmooth_n_pointssamples centred on it, except that the windows of the first(smooth_n_max - 1) / 2samples start at the first sample (with the defaults, the window of sample 4 starts with samples 1 to 6). It widens by one sample on each side at a time, in at mostsmooth_n_max - smooth_n_pointssteps, while it spans less thansmooth_age_rangeyears and has at mostsmooth_n_maxsamples. Windows near the ends of the sequence can therefore stay smaller thansmooth_n_max. The window is not always centred on its sample, and neighbouring samples can end up with the same window. Their smoothed values are then identical, and the RoC between them is zero.
- smooth_n_points
numeric. Number of samples in the window of moving average and age-weighted smoothing, and in the starting window of Grimm smoothing: the sample and(smooth_n_points - 1) / 2samples on each side (for Grimm, see the exception at the start of the sequence undersmooth_method). Near the ends of the sequence, the window is cut at the first or last sample and holds fewer samples. Must be a positive, odd whole number. Shepard's filter always uses the sample and two samples on each side; for it,smooth_n_points(a whole number greater than 2) only sets how many samples at each end of the sequence are left unsmoothed:smooth_n_points / 2, rounded to the nearest whole number with halves rounded to the even number (2 for 3 to 5, 4 for 7 to 9).- smooth_N_points
smooth_N_pointsis no longer supported; please usesmooth_n_points- smooth_age_range
numeric. Maximum age range (in years) for Grimm and age-weighted smoothing windows.- smooth_n_max
numeric. Maximum number of samples included in a Grimm smoothing window. Must be an odd whole number larger thansmooth_n_points.- smooth_N_max
smooth_N_maxis no longer supported; please usesmooth_n_max- working_units
character. Strategy used to define Working Units between which dissimilarity is calculated."levels"- each stratigraphical level is its own WU."bins"- one representative level is selected from each time bin of widthbin_size."MW"- moving-window binning: selective binning is repeatednumber_of_shiftstimes, shifting the window bybin_size / number_of_shiftsyears each time. All results are retained and summarised together.
- Working_Units
Working_Unitsis no longer supported; please useworking_units- bin_size
numeric. Width of each time bin in years. Used whenworking_unitsis"bins"or"MW".- number_of_shifts
numeric. Number of window shifts in moving-window binning (working_units = "MW").- Number_of_shifts
Number_of_shiftsis no longer supported; please usenumber_of_shifts- bin_selection
character. Rule for selecting one level from each bin."random"(default) - a level is selected at random."first"- the level closest to the start of the bin is selected.
- standardise
logical. IfTRUE, assemblage counts in each WU are rarefied ton_individualsbefore dissimilarity is computed.- n_individuals
numeric. Number of individuals to rarefy to whenstandardise = TRUE. Automatically reduced to the smallest count in the sequence if any WU has fewer individuals.- N_individuals
N_individualsis no longer supported; please usen_individuals- dissimilarity_coefficient
character. Dissimilarity coefficient used to compare consecutive WUs. Seevegan::vegdist()for details."euc"- Euclidean distance"euc.sd"- standardised Euclidean distance"chord"- Chord distance"chisq"- Chi-squared coefficient"gower"- Gower's distance"bray"- Bray-Curtis dissimilarity
- DC
DCis no longer supported; please usedissimilarity_coefficient- tranform_to_proportions
logical. IfTRUE(default), community data are converted to proportions before dissimilarity is computed.- rand
numeric. Number of randomisation runs. Set toNULL(default) for a single run. The single run uses the point ages (age_uncertaintyis not used), and it is deterministic unless samples are selected at random (bin_selection = "random"withworking_units = "bins"or"MW") or counts are rarefied (standardise = TRUE). With these settings or withage_uncertainty, fewer than 100 runs (includingNULL) give a warning unlesssilent = TRUE. With 100 runs or more, a warning gives the recommended number of runs when the Monte Carlo error is too large (see Details andcheck_rand()).- use_parallel
Controls parallel computation of randomisation runs.
FALSE(default) - single core only.TRUE- all cores available to the R session, as reported byparallelly::availableCores(). This respects the cores allocated to a job by an HPC scheduler (for example SLURM), container limits, and the optionmc.cores. If only one core is available, runs on a single core.A positive
numeric- use that many cores.1is the same asFALSE.
When the runs draw random numbers (random bin selection or
standardise = TRUE), each run has its own random-number stream, created before the runs start. Seeded results (see Details ofestimate_roc()) are therefore identical for any value ofuse_parallelandsilent.- interest_threshold
numeric. Optional. Samples older than this age are excluded from the output.- time_standardisation
numeric. Time unit for RoC values. RoC is reported as dissimilarity pertime_standardisationyears. Defaults tobin_sizewhenNULL.- verbose
logical. IfTRUE, print progress messages during computation.
