🔒

R Scripts — Statistics

Enter the password to access this page.

📊

Statistics

Summary stats, SES, t-tests and index extraction helpers

distrib(x, k=6)
Compute a compact NA-cleaned numeric summary: N, min, Q1, median, mean, Q3, max.
hms_span(start, end)
Format the elapsed time between two POSIXct timestamps as HH:MM:SS.
sesandpvalues_bis(obs, rand, nreps, probs, rnd)
Standardised effect size (SES) and p-value from an observed value vs. a null randomisation vector.
extract_t_test(x, y, ...)
Run a Welch t-test and return a tidy data frame with means, SDs, t-statistic, p-value and significan
extract_indices_list(ind)
Compute SES (Observed, SES, MeanRd, CI, Pval) for each column of an index matrix.
extract_indices_change(ind)
Absolute difference in functional indices across two conditions.
extract_indices_change_log(ind)
Log-ratio change in functional indices across two conditions.
lm_summary()
Extract tidy results from a fitted lm object
check_completeness()
Report trait completeness per column
boot_ci()
Bootstrap confidence intervals for any statistic