Learn R Programming

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

mosaic (version 0.13.0)

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

14,995

Version

0.13.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Randall Pruim

Last Published

December 18th, 2015

Functions in mosaic (0.13.0)

MSPE

Mean Squared Prediction Error
adapt_seq

Adaptively generate sequences in an interval
cdist

Central portion of a distribution
integrateODE

Integrate ordinary differential equations
CIAdata

Return a dataset based on the CIA World Factbook
TukeyHSD.lm

Additional interfaces to TukeyHSD
coef.function

Extract coefficients from a function
Broyden

Multi-Dimensional Root Finding
compareMean

Compare means between 2 groups
fortify.hclust

mosaic tools for clustering
CIsim

Compute confidence intervals from (multiple) simulated data sets
evalSubFormula

Evaluate a part of a formula
interval

Extract summary statistics
columns

return a vector of row or column indices
docFile

Return the path to a documentation file in a package
inferArgs

Infer arguments
xyz2latlon

Convert back and forth between latitude/longitude and XYZ-space
deltaMethod

Delta method on data frames
ediff

Lagged Differences with equal length
fav_stats

Some favorite statistical summaries
D

Derivative and Anti-derivative operators
is.wholenumber

Check for whole number values
rgeo-internals

rgeo internal functions
ladd

Add to Lattice Plots
ntiles

Create vector based on roughly equally sized groups
MAD

All pairs mean and sum of absolute differences
fitdistr

Maximum-likelihood fitting of univariate distributions
mosaic_formula

Convert formulas into standard shapes
qdata_v

The Data Distribution
orrr

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

Defunct functions now in the fetch package
t_test

Student's t-Test
update_ci

Update confidence interval
compareProportion

Compare proportions between 2 groups
rflip

Tossing Coins
sp2df

Transforms a shapefile into a dataframe
named

List extraction
cull_for_do

Cull objects used with do()
qdata

The Data Distribution
set.rseed

Set seed in parallel compatible way
as.xtabs

Convert objects to xtabs format
fitModel

Fit a nonlinear least squares model
fortify.summary.lm

Extract data from R objects
panel.lmbands

show confidence and preciction bands on plots
deg2rad

Convert between degrees and radians
r.squared

Extract r-squared value
plotDist

Plots of Discrete and Continuous Distributions
qdist

Illustrated quantile calculations from distributions
symbolicD

Symbolic Derivatives
maggregate

Aggregate for mosaic
evalFormula

Evaluate a formula
.is.formula

Check if formula
fitSpline

Fit splines to data
swap

Swap values among columns of a data frame
binom.test

Exact Tests for Proportions
dpqrdist

Distribution wrapper
ashplot

Average Shifted Histograms
prop.test

Exact and Approximate Tests for Proportions
logit

Logit and inverse logit functions
rescale

Rescale
MAD_

All pairs mean and sum of absolute differences
dfapply

apply-type function for data frames
getVarFormula

Extract data from a data frame using a formula interface
plotCumfreq

Cumulative frequency plots
gwm

Groupwise models Construct a model based on groupwise means or proportions
googleMap

Display a point on earth on a Google Map
rfun

Generate a natural-looking function
xchisq.test

Augmented Chi-squared test
FunctionsFromData

Create function from data
do

Do Things Repeatedly
makeColorscheme

Create a color generating function from a vector of colors
freqpolygon

Frequency Polygons
mosaic-package

mosaic: the Project MOSAIC package
mplot

Generic plotting
n_missing

counting missing elements
panel.plotFun

Panel function for plotting functions
parse.formula

Parse formulas
rkintegrate

A simple Runge-Kutte integrator
standardName

Standardization of Geographic Names
derivedFactor

Create factors from logicals
linear.algebra

Functions for teaching linear algebra.
inspect

Inspect objects
mm

Construct a model based on groupwise means
joinFrames

Join data frames
numD

Numerical Derivatives
repeater-class

Repeater objects
relm

Resample a Linear Model
theme_map

ggplot2 theme for maps
tally

Tabulate categorical data
xhistogram

Augmented histograms
confint

Confidence interval methods for output of resampling
makeMap

Make a map with ggplot2
mUSMap

Make a US map with ggplot2
panel.plotFun1

Panel function for plotting functions
aggregatingFunction2

2-ary Aggregating functions
cross

Factor cross products
findZerosMult

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

Make a world map with ggplot2
mosaic.options

Setting options for mosaic package functions
logical2factor

Turn logicals into factors; leave other things alone
resample

More Random Samples
rstudio_is_available

Check whether RStudio is in use
plotFun

Plotting mathematical expressions
read.file

Read data files
modelVars

extract predictor variables from a model
rlatlon

Sample longitude and latitude on a sphere
rsquared

Extract r-squared value
.polyExp

Takes a call and returns its polynomial coefficients
surround

Format strings for pretty output
aggregatingFunction1

1-ary Aggregating functions
bargraph

Create bar graphs from raw data
xpnorm

Augmented versions of pnorm and qnorm
diffmean

Difference in means and proportions
expandFun

Expand the left-hand side of a formula
formularise

Convert lazy objects into formulas
makeFun

Create a function from a formula
nice_names

Nice names
statTally

Tally test statistics
mean

Aggregating functions
chisq

Extract Chi-squared statistic
findZeros

Find zeros of functions
rspin

Simulate spinning a spinnner
mid

midpoints along a sequence
fractions

Rational Approximation
symbolicInt

Find the symbolic integral of a formula
project

Projections
perctable

Cross tabulation displayed as percents or proportions
prop

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

Random Regressors
factorize

Conditionally convert vectors to factors
dotPlot

Dotplots
zscore

Compute z-scores
print.msummary.lm

Modified summaries
pdist

Illustrated probability calculations from distributions
xqqmath

Augmented version of qqmath
plotPoints

Scatter plot of points
plotModel

Plot a regression model
theme.mosaic

Lattice Theme
panel.levelcontourplot

Lattice plot that draws a filled contour plot