Learn R Programming

⚠️There's a newer version (1.9.1) of this package.Take me there.

mosaic (version 0.12)

Project MOSAIC Statistics and Mathematics Teaching Utilities

Description

Data sets and utilities from Project MOSAIC (mosaic-web.org) used to teach mathematics, statistics, computation and modeling. Funded by the NSF, Project MOSAIC is a community of educators working to tie together aspects of quantitative work that students in science, technology, engineering and mathematics will need in their professional lives, but which are usually taught in isolation, if at all.

Copy Link

Version

Install

install.packages('mosaic')

Monthly Downloads

8,103

Version

0.12

License

GPL (>= 2)

Maintainer

Randall Pruim

Last Published

October 12th, 2015

Functions in mosaic (0.12)

mean

Aggregating functions
FunctionsFromData

Create function from data
deltaMethod

Delta method on data frames
docFile

Return the path to a documentation file in a package
fav_stats

Some favorite statistical summaries
fitSpline

Fit splines to data
MAD_

All pairs mean and sum of absolute differences
cull_for_do

Cull objects used with do()
columns

return a vector of row or column indices
integrateODE

Integrate ordinary differential equations
aggregatingFunction2

2-ary Aggregating functions
mosaic-package

mosaic: the Project MOSAIC package
evalFormula

Evaluate a formula
as.xtabs

Convert objects to xtabs format
TukeyHSD.lm

Additional interfaces to TukeyHSD
named

List extraction
fetchData

Defunct functions now in the fetch package
dpqrdist

Distribution wrapper
dfapply

apply-type function for data frames
freqpolygon

Frequency Polygons
fitdistr

Maximum-likelihood fitting of univariate distributions
diffmean

Difference in means and proportions
adapt_seq

Adaptively generate sequences in an interval
interval

Extract summary statistics
gwm

Groupwise models
fitModel

Fit a nonlinear least squares model
modelVars

extract predictor variables from a model
mWorldMap

Make a world map with ggplot2
makeColorscheme

Create a color generating function from a vector of colors
mm

Construct a model based on groupwise means
xhistogram

Augmented histograms
panel.lmbands

show confidence and preciction bands on plots
.is.formula

Check if formula
sp2df

Transforms a shapefile into a dataframe
tally

Tabulate categorical data
panel.levelcontourplot

Lattice plot that draws a filled contour plot
r.squared

Extract r-squared value
mosaic_formula

Convert formulas into standard shapes
qdist

Illustrated quantile calculations from distributions
panel.plotFun

Panel function for plotting functions
plotModel

Plot a regression model
CIAdata

Return a dataset based on the CIA World Factbook
set.rseed

Set seed in parallel compatible way
deg2rad

Convert between degrees and radians
getVarFormula

Extract data from a data frame using a formula interface
plotPoints

Scatter plot of points
ntiles

Create vector based on roughly equally sized groups
qdata_v

The Data Distribution
numD

Numerical Derivatives
MAD

All pairs mean and sum of absolute differences
rflip

Tossing Coins
MSPE

Mean Squared Prediction Error
rgeo-internals

rgeo internal functions
surround

Format strings for pretty output
rescale

Rescale
ashplot

Average Shifted Histograms
coef.function

Extract coefficients from a function
Broyden

Multi-Dimensional Root Finding
binom.test

Exact Tests for Proportions
plotCumfreq

Cumulative frequency plots
cdist

Central portion of a distribution
rfun

Generate a natural-looking function
t_test

Student's t-Test
rstudio_is_available

Check whether RStudio is in use
theme_map

ggplot2 theme for maps
fortify.hclust

mosaic tools for clustering
logical2factor

Turn logicals into factors; leave other things alone
theme.mosaic

Lattice Theme
orrr

Odds Ratio and Relative Risk for 2 x 2 Contingency Tables
ediff

Lagged Differences with equal length
symbolicD

Symbolic Derivatives
fortify.summary.lm

Extract data from R objects
resample

More Random Samples
expandFun

Expand the left-hand side of a formula
joinFrames

Join data frames
CIsim

Compute confidence intervals from (multiple) simulated data sets
aggregatingFunction1

1-ary Aggregating functions
xyz2latlon

Convert back and forth between latitude/longitude and XYZ-space
linear.algebra

Functions for teaching linear algebra.
makeFun

Create a function from a formula
logit

Logit and inverse logit functions
relm

Resample a Linear Model
rlatlon

Sample longitude and latitude on a sphere
chisq

Extract Chi-squared statistic
compareMean

Compare means between 2 groups
makeMap

Make a map with ggplot2
plotDist

Plots of Discrete and Continuous Distributions
rkintegrate

A simple Runge-Kutte integrator
mplot

Generic plotting
project

Projections
statTally

Tally test statistics
evalSubFormula

Evaluate a part of a formula
rand

Random Regressors
factorize

Conditionally convert vectors to factors
repeater-class

Repeater objects
xpnorm

Augmented versions of pnorm and qnorm
swap

Swap values among columns of a data frame
xchisq.test

Augmented Chi-squared test
plotFun

Plotting mathematical expressions
update_ci

Update confidence interval
xqqmath

Augmented version of qqmath
standardName

Standardization of Geographic Names
D

Derivative and Anti-derivative operators
confint.numeric

Confidence interval methods for output of resampling
dotPlot

Dotplots
googleMap

Display a point on earth on a Google Map
derivedFactor

Create factors from logicals
inferArgs

Infer arguments
is.wholenumber

Check for whole number values
parse.formula

Parse formulas
mUSMap

Make a US map with ggplot2
findZerosMult

Find the zeros of a function of two or more variables
ladd

Add to Lattice Plots
print.msummary.lm

Modified summaries
nice_names

Nice names
compareProportion

Compare proportions between 2 groups
do

Do Things Repeatedly
pdist

Illustrated probability calculations from distributions
prop

Compute proportions, percents, or counts for a single level
perctable

Cross tabulation displayed as percents or proportions
rsquared

Extract r-squared value
prop.test

Exact and Approximate Tests for Proportions
rspin

Simulate spinning a spinnner
symbolicInt

Find the symbolic integral of a formula
.polyExp

Takes a call and returns its polynomial coefficients
read.file

Read data files
zscore

Compute z-scores
bargraph

Create bar graphs from raw data
cross

Factor cross products
maggregate

Aggregate for mosaic
findZeros

Find zeros of functions
fractions

Rational Approximation
formularise

Convert lazy objects into formulas
mid

midpoints along a sequence
mosaic.options

Setting options for mosaic package functions
panel.plotFun1

Panel function for plotting functions
qdata

The Data Distribution