This page was last updated on September 23, 2019.
Getting started:
read.csvurllibrarygetwdData frame structure:
namesheadstrinspect (tigerstats / mosaic packages)Frequency tables:
xtabsprop.tablerowPerc (tigerstats)colPerc (tigerstats)Graphs:
barchartGC (tigerstats / lattice packages)histogram (tigerstats / lattice packages)hist (base stats package)Descriptive stats:
favstats (tigerstats and mosaic packages)meanmedianvarsdIQRGetting started:
read.csvurllibrarygetwdData frame structure:
namesheadstrinspect (tigerstats / mosaic packages)Contingency tables:
xtabsaddmarginsprop.tablerowPerc (tigerstats)colPerc (tigerstats)Graphs:
barchartGC (tigerstats / lattice packages)mosaicplotstripchart (lattice package)xyplot (lattice package)boxplotGetting started:
read.csvurllibraryDescriptive stats:
favtstatsmeanGetting started:
read.csvurllibraryData frame structure:
headstrinspect (tigerstats / mosaic packages)lengthSampling:
set.seedsampledo (mosaic package)Data management and exploration:
filter (from the dplyr package)subsetna.omitlengthmeansdsqrtGraphs:
histogramhistGetting started:
libraryData frame structure:
headstrTabulation:
xtabsSimulation:
set.seedsampledorflip (from the mosaic package in the tigerstats package)Graphs:
barplot (different from the barchartGC function used in previous tutorials)Getting started:
libraryData frame structure:
headstrTabulation:
xtabsSimulation:
set.seedsampledorflip (from the mosaic package in the tigerstats package)Math:
sumGraphs:
barplot (different from the barchartGC function used in previous tutorials)Getting started:
libraryData frame structure:
strinspectlengthTabulation:
xtabsprop.tableSimulation:
repset.seedsampledoMath:
sumsqrtData management and exploration:
meanGraphs:
barplotBinomial distribution:
binom.confint (from the binom package)Getting started:
libraryData frame structure:
strinspectnamesTabulation:
xtabsSimulation:
set.seedsampledoseqMath:
sumGraphs:
barplotBinomial distribution:
dbinom (base package)binom.confint (from the binom package)binom.test (from the binom package)Getting started:
libraryData frame structure:
strinspectCreate tables:
kableMath:
sumcurve (base package)Graphs:
barplotsegmentsGoodness of fit:
dchisq (base package)qchisq (base package)chisqtestGC (from the tigerstats package)Getting started:
libraryData frame structure:
inspectTabulation:
xtabsManipulate data:
t (base package, for transposing matrix)Graphs:
mosaicplotOdds ratio:
oddsratio (from the epitools package)Getting started:
libraryData frame structure:
inspectnameslevelsTabulation:
xtabsprop.tableManipulate data:
t (base package, for transposing matrix)Graphs:
mosaicplotContingency analysis:
fisher.testchisq.testGetting started:
read.csvurllibraryData frame structure:
headinspect (tigerstats / mosaic packages)Simulation:
set.seedsampledomeanNormal distribution:
rnormpnormGC (tigerstats package)qnormGC (tigerstats package)Graphs:
histogramGetting started:
read.csvurllibraryData frame structure:
headinspect (tigerstats / mosaic packages)The “t” distribution:
ptqtt.test (mosaic package loaded as part of the tigerstats package)Graphs:
histogramhistGetting started:
read.csvurllibraryData management / manipulation:
inspect (tigerstats / mosaic packages)levelsfilter (tidyr package)xtabs (tigerstats / mosaic packages)The “t” distribution:
qtt.test (mosaic package loaded as part of the tigerstats package)Graphs:
histboxplotqqnormqqlinesegmentsparAssumptions:
leveneTest (car package)qqnormqqlineshapiro.testGetting started:
read.csvurllibraryData management / manipulation:
inspect (tigerstats / mosaic packages)levelsheadxtabs (tigerstats / mosaic packages)levelsorderednamesGraphs:
stripchartggstripchart (from the ggpubr package)qqnormqqlineparAssumptions:
leveneTest (car package)ANOVA:
lmanovasummaryANOVA Table:
namescolSumsas.data.framerbindkable (knitr and kableExtra packages)Post-hoc tests:
TukeyHSDannotate (ggplot2 package, loaded with ggpubr package)Getting started:
read.csvurllibraryData management / manipulation:
inspect (tigerstats / mosaic packages)headGraphs:
plotjitterCorrelation:
cor.testGetting started:
read.csvurllibraryData management / manipulation:
inspect (tigerstats / mosaic packages)headData visualization:
plotjitterAssumptions:
qqnormqqlineresidualsshapiro.testablineRegression:
lmsummaryconfintvisreg (from the visreg package)Prediction:
predict.lmseqdata.framesamplepointsGetting started:
read.csvurllibraryData frame structure:
namesinspect (tigerstats / mosaic packages)Graphs:
stripchart (lattice package)Descriptive stats:
favstats (tigerstats and mosaic packages)Tables (all from the kableExtra package):
kablekable_stylingadd_header_abovekable_as_imageGetting started:
read.csvurllibraryTesting assumptions:
headhistqqnormqqlineparplotshapiro.testleveneTest (from the car package)inspect (from the tigerstats package)Transformations:
loglog10logit (from the car package)invlogit (from the arm package)exp