Learn R Programming

asbio (version 1.11)

A Collection of Statistical Tools for Biologists

Description

Contains functions from: Aho, K. (2014) Foundational and Applied Statistics for Biologists using R. CRC/Taylor and Francis, Boca Raton, FL, ISBN: 978-1-4398-7338-0.

Copy Link

Version

Install

install.packages('asbio')

Monthly Downloads

2,140

Version

1.11

License

GPL (>= 2)

Maintainer

Ken Aho

Last Published

January 14th, 2025

Functions in asbio (1.11)

HL.mean

Hodges-Lehman estimator of location
G.mean

Geometric mean
MC

Simple functions for MCMC demonstrations
Kappa

Calculates kappa statistic and other classification error statistics
Fbird

Frigatebird drumming frequency data
K

Soil potassium analyses from 8 laboratories
Glucose2

Glucose Levels Following Alcohol Ingestion
H.mean

Harmonic mean
Mode

Sample mode
ML.k

Maximum likelihood algorithm for determining the binomial dispersal coefficient
Kullback

Kullback test for equal covariance matrices.
MC.test

Monte Carlo hypothesis testing for two samples.
SM.temp.moist

Alpine soil temperature and moisture time series
PM2.5

PM 2.5 pollutant data from Pocatello Idaho
alfalfa.split.plot

An agricultural split plot design
Preston.dist

Preston diversity analysis
R.hat

R hat MCMC convergence statistic
agrostis

Agrostis variabilis cover measurements
Rabino_CO2

CSIRO d13C-CO2 data from Rubino et al., A revised 1000 year atmospheric 13C-CO2 record from Law Dome and South Pole, Antarctica
aids

Aids and veterans dataset
Semiconductor

Split plot computer chip data from Littell et al. (2006)
anm.ci

Animation demonstrations of confidence intervals.
anm.coin

Animated demonstration of frequentist binomial convergence of probability using a coin flip.
MS.test

Mack-Skillings test
alpha.div

Functions for calculating alpha diversity.
anm.mc.bvn

Animation of Markov Chain Monte Carlo walks in bivariate normal space
anm.geo.growth

Animated depictions of population growth
anm.samp.design

Animated demonstration of randomized sampling designs
anm.loglik

Animated plots of log-likelihood functions
bayes.lm

Bayesian linear models with uniform priors
anolis

Anolis lizard contingency table data
PCB

PCBs and herring egg thickness
anscombe

Anscombe's quartet
bats

Bat forearm length as a function of bat age
SexDeterm

Fern environmental sex determination data
Venn

Venn probability diagrams for an event with two outcomes
bin2dec

Conversion between binary digits and decimal numbers
best.agreement

Determine agreement of two classifications
anm.die

Animated depiction of six-sided die throws.
anm.ExpDesign

Animated depiction of experimental designs
anm.LV

Animated depictions of Lotka-Volterra competition and exploitation models
auc

Area under a receiver operating characteristic (ROC) curve
baby.walk

Baby walking times experimental data
anm.cont.pdf

Animated demonstration of density for a continuous pdf
bvn.plot

Make plots of bivariate normal distributions
bv.boxplot

Bivariate boxplots
bombus

Bombus pollen data.
anm.ls.reg

Animated plot of the least squares function.
beetle

Wood boring beetle data
bear

Grizzly bear litter sizes
ant.dew

Ant honeydew data
anm.ls

Animated plot of least squares function.
bootstrap

A simple function for bootstrapping
case1202

Dataset of salary attributes for male and female workers from Ramsey and Schafer (1997)
asthma

Asthma repeated measures dataset from Littell et al. (2002)
caribou

Caribou count data
bound.angle

Angle of azimuth to a boundary.
bone

Bone development data
ci.mu.oneside

One sided confidence interval for mu.
chi.plot

Chi plots for diagnosing multivariate independence.
ci.mu.z

Z and t confidence intervals for mu.
chronic

Chronic ailment counts for urban and rural women in Australia
corn

Corn yield data
case0902

Dataset of mammal traits from Ramsey and Schaefer (1997)
ci.boot

Bootstrap confidence intervals
ci.prat

Confidence intervals for the ratio of binomial and multinomial proportions
ci.prat.ak

Confidence intervals for ratios of proportions when the denominator is known
bromus

Bromus tectorum dataset
enzyme

Enzymatic rate data for the phospholipase protein ExoU
ci.median

Confidence interval for the median
ci.sigma

Confidence interval for sigma squared.
ci.impt

Confidence interval for the product of two proportions
e.cancer

Esophageal cancer data modified slightly to create a balanced three-way factorial design
book.menu

Pulldown menus for 'asbio' interactive graphical functions
ci.p

Confidence interval estimation for the binomial parameter pi using five popular methods.
facebook

Facebook performance metrics for data mining and machine learning
crab.weight

crab gill and body weight data
depression

Hamilton depression scores before and after drug treatment
bplot

Barplots with error bars (including interval plots)
eff.rbd

Efficiency of a randomized block design compared to a CRD
exercise.repeated

Repeated measures data for an exercise experiment.
cliff.sp

Yellowstone NP cliff community data
drugs

Contingency data for high school marijuana, alcohol, and cigarette use
deer.296

Mule deer telemetry data
boot.ci.M

Bootstrap CI of M-estimators differences of two samples
fire

Fire data from Yellowstone National Park
ipomopsis

Ipomopsis fruit yield data
grass

Agricultural factorial design
huber.NR

Huber M-estimator iterative least squares algorithm
huber.one.step

Huber one step M-estimator
joint.ci.bonf

Calculates joint confidence intervals for parameters in linear models using a Bonferroni procedure.
huber.mu

Huber M-estimator of location
heart

Heart rate data from Milliken and Johnson (2009)
deer

Maternal deer data
myeloma

Patient responses to myeloma drug treatments
fruit

Fruit weight data from Littell et al. (2002)
g.test

Likelihood ratio test for tabular data
moose.sel

Datasets for resource use and availability
magnets

Magnet pain relief data
crabs

Agresti crabs dataset
concrete

Concrete strength dataset for data mining
ci.strat

Confidence intervals for stratified random samples.
cuckoo

Tippett cuckoo egg data
fly.sex

Fly sex and longevity
mcmc.norm.hier

Gibbs sampling of normal hierarchical models
illusions

Visual illusions illustrating human perception errors.
lm.select

AIC, AICc, BIC, Mallow's Cp, and PRESS evaluation of linear models
life.exp

Mouse life expectancy data
potash

Potash/cotton strength data
near.bound

Nearest neighbor boundary coordinates
pairw.fried

Multiple pairwise comparison procedure to accompany a Friedman test.
partial.R2

Partial correlations of determination in multiple regression
frog

Australian frog calls following fire
r.bw

Biweight midvariance, and biweight midcorrelation.
plantTraits

Plant traits for 136 species
portneuf

Portneuf River longitudinal N and P data
polyamine

Polyamine data from Hollander and Wolfe (1999)
pairw.kw

Multiple pairwise comparison procedure to accompany a Kruskal-Wallis test
partial.resid.plot

Partial residual plots for interpretation of multiple regression.
potato

Fisher's Rothamsted potato data
cliff.env

Environmental data for the community dataset cliff.sp
sedum.ts

CO2 exchange time series data
r.dist

Visualize the sampling distribution of Pearson's product moment correlation
garments

Garment Latin square data from Littell et al. (2002)
death.penalty

Florida state death penalty data
dO2

Dissolved levels in locations above and below a town
mosquito

Mosquito wing length data
paik

Paik diagrams
see.ancova.tck

Visualize ANCOVA mechanics
see.lmu.tck

Unbalanced and balanced linear models
see.HW

Visualize the Hardy Weinberg equilibrium
see.anova.tck

Interactive depiction of the ANOVA mechanism
prp

Perpendicularity
plot.pairw

Plots confidence intervals and/or bars with letters indicating significant differences for objects from class pairw
see.lma.tck

ANOVA linear models
samp.dist.mech

Animated representation of sampling distribution basics
see.logic

Interactive worksheet for logical and fallacious arguments
see.nlm

Visualize important non-linear functions
prostate

Prostate cancer data
goats

Mountain goat data from Yellowstone National Park
savage

Mammalian BMR and biomass data from Savage et al. (2004)
see.move

Interactive visualization of least squares regression.
see.lmr.tck

Regression linear model derivation from linear algebra
one.sample.t

One sample t-test
pairw.anova

Conducts pairwise post hoc and planned comparisons associated with an ANOVA
refinery

Refinery CO dataset
rat

Rat glycogen data from Sokal and Rohlf (2012)
perm.fact.test

Permutation test for two and three way factorial designs
rinvchisq

Random draws from a scaled inverse chi-square distribution
r.pb

Percentage bend correlation
one.sample.z

One sample z-test
see.M

Visualization of the M-estimation function
see.accPrec.tck

Interactive depiction of precision and accuracy
see.ttest.tck

Visualize t-tests
see.norm.tck

Visualize pdfs
larrea

Creosote bush counts
see.power

Interactive depiction of type I and type II error and power
see.typeI_II

Interactive depiction of type I and II error
km

Kaplan-Meier survivorship.
modlevene.test

Modified Levene's test
pseudo.v

Jacknife pseudo-values
see.mnom.tck

Interactive depiction of the multinomial distribution
see.mixedII

Depiction of the effect of random level selection on inferences concerning fixed effects
pika

Nitrogen content of soils under pika haypiles
shade.norm

Shading functions for interpretation of pdf probabilities.
montane.island

Mountain island biogeographic data
snore

Snoring and heart disease contingency data
so2.us.cities

SO2 data for 32 US cities with respect to 6 explanatory variables
selftest.se.tck1

Interactive self-testing questions
see.regression.tck

Demonstration of regression mechanics
see.rEffect.tck

Visualize random effects model
qq.Plot

Normal quantile plots for single or multiple factor levels
pairw.oneway

Welch tests controlled for simultaneous inference
panel.cor.res

Functions for customizing correlation matrices
veneer

Veneer data from Littell et al. (2002)
tukey.add.test

Tukey's test of additivity.
trag

Salsify height dataset
shade.norm.tck

GUI display of probability
transM

Transition matrix analysis
suess

del14C in the atmosphere from 1700-1950
trim.me

Trim data
plotAncova

Creates plots for one way ANCOVAs
webs

Spider web length data
wheat

Agricultural randomized block design
world.co2

World CO2 levels, by country, from 1980 to 2006
plotCI.reg

Plots a simple linear regression along with confidence and prediction intervals.
see.exppower.tck

Visualize exponential power functions
see.cor.range.tck

Depict the effect of range on correlation
samp.dist

Animated and/or snapshot representations of a statistic's sampling distribution
world.emissions

Greenhouse gas emissions from Our World in Data
rmvm

A multivariate normal dataset for data mining
power.z.test

Power analysis for a one sample z-test
shad

American gizzard shad data
se.jack

Jackknife standard error from a set of pseudovalues
press

prediction sum of squares
win

Winsorize data
sc.twin

Matched pairs schizophrenia data
wine

White wine quality data for data mining
see.roc.tck

Interactive depiction of ROC curves
see.smooth.tck

Interactive smoother demonstrations
trim.ranef.test

Robust test for random factors using trimmed means.
simberloff

Compilations of genus and species counts from Simberloff (1970)
wildebeest

Wildebeest carcass categorical data
whickham

Whickham contingency table data for smokers and survivorship
skew

Sample skewness and kurtosis
trim.test

Robust one way trimmed means test.
stan.error

Variance and standard error estimators for the sampling distribution of the sample mean
vs

Scandinavian site by species community matrix
world.pop

Population levels in various countries from 1980-2006
wash.rich

Species richness and environmental variables from Mt Washburn
starkey

DEM data from the Starkey experimental forest in NE Oregon
BDM.test

Brunner-Dette-Munk test
ConDis.matrix

Calculation and display of concordant and discordant pairs
D.sq

Mahalanobis distance for two sites using a pooled covariance matrix
BCI.plant

Tree presence/absence data from Barro Colorado island
Bayes.disc

Bayesian graphical summaries for discrete or categorical data.
C.isotope

Atmospheric carbon and D14C measurements
BCI.count

Barro Colorado Island Tree Counts
AP.test

Agresti-Pendergrast test
ES.May

May's effective specialization index
DH.test

Doornik-Hansen test for multivariate normality.