Projects
Teaching
Data
R scripts
My blog
🔒
R Scripts — Statistics
Enter the password to access this page.
OK
←
Back to R Scripts
📊
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.
Open ↗
hms_span(start, end)
Format the elapsed time between two POSIXct timestamps as HH:MM:SS.
Open ↗
sesandpvalues_bis(obs, rand, nreps, probs, rnd)
Standardised effect size (SES) and p-value from an observed value vs. a null randomisation vector.
Open ↗
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
Open ↗
extract_indices_list(ind)
Compute SES (Observed, SES, MeanRd, CI, Pval) for each column of an index matrix.
Open ↗
extract_indices_change(ind)
Absolute difference in functional indices across two conditions.
Open ↗
extract_indices_change_log(ind)
Log-ratio change in functional indices across two conditions.
Open ↗
lm_summary()
Extract tidy results from a fitted lm object
Open ↗
check_completeness()
Report trait completeness per column
Open ↗
boot_ci()
Bootstrap confidence intervals for any statistic
Open ↗