50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

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

mosaic (version 0.11)

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

9,767

Version

0.11

License

GPL (>= 2)

Maintainer

Randall Pruim

Last Published

September 10th, 2015

Functions in mosaic (0.11)

columns

return a vector of row or column indices
mosaic_formula

Convert formulas into standard shapes
fav_stats

Some favorite statistical summaries
ediff

Lagged Differences with equal length
aggregatingFunction2

2-ary Aggregating functions
fortify.hclust

mosaic tools for clustering
getVarFormula

Extract data from a data frame using a formula interface
repeater-class

Repeater objects
compareProportion

Compare proportions between 2 groups
dotPlot

Dotplots
dfapply

apply-type function for data frames
rsquared

Extract r-squared value
factorize

Conditionally convert vectors to factors
cross

Factor cross products
set.rseed

Set seed in parallel compatible way
evalSubFormula

Evaluate a part of a formula
logical2factor

Turn logicals into factors; leave other things alone
rflip

Tossing Coins
maggregate

Aggregate for mosaic
bargraph

Create bar graphs from raw data
CIAdata

Return a dataset based on the CIA World Factbook
plotDist

Plots of Discrete and Continuous Distributions
deg2rad

Convert between degrees and radians
diffmean

Difference in means and proportions
fitdistr

Maximum-likelihood fitting of univariate distributions
docFile

Return the path to a documentation file in a package
theme.mosaic

Lattice Theme
pdist

Illustrated probability calculations from distributions
freqpolygon

Frequency Polygons
fractions

Rational Approximation
relm

Resample a Linear Model
plotCumfreq

Cumulative frequency plots
TukeyHSD.lm

Additional interfaces to TukeyHSD
xyz2latlon

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

Logit and inverse logit functions
derivedFactor

Create factors from logicals
fortify.summary.lm

Extract data from R objects
FunctionsFromData

Create function from data
makeColorscheme

Create a color generating function from a vector of colors
aggregatingFunction1

1-ary Aggregating functions
modelVars

extract predictor variables from a model
rspin

Simulate spinning a spinnner
rescale

Rescale
plotModel

Plot a regression model
nice_names

Nice names
confint.numeric

Confidence interval methods for output of resampling
chisq

Extract Chi-squared statistic
do

Do Things Repeatedly
swap

Swap values among columns of a data frame
deltaMethod

Delta method on data frames
findZerosMult

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

Expand the left-hand side of a formula
xchisq.test

Augmented Chi-squared test
fetchData

Defunct functions now in the fetch package
fitSpline

Fit splines to data
rgeo-internals

rgeo internal functions
Broyden

Multi-Dimensional Root Finding
xhistogram

Augmented histograms
MAD

All pairs mean and sum of absolute differences
findZeros

Find zeros of functions
compareMean

Compare means between 2 groups
ntiles

Create vector based on roughly equally sized groups
sp2df

Transforms a shapefile into a dataframe
panel.plotFun

Panel function for plotting functions
D

Derivative and Anti-derivative operators
parse.formula

Parse formulas
qdata_v

The Data Distribution
formularise

Convert lazy objects into formulas
integrateODE

Integrate ordinary differential equations
mm

Construct a model based on groupwise means
ladd

Add to Lattice Plots
adapt_seq

Adaptively generate sequences in an interval
ashplot

Average Shifted Histograms
cdist

Central portion of a distribution
makeMap

Make a map with ggplot2
mid

midpoints along a sequence
binom.test

Exact Tests for Proportions
dpqrdist

Distribution wrapper
mosaic-package

mosaic: the Project MOSAIC package
print.msummary.lm

Modified summaries
fitModel

Fit a nonlinear least squares model
mplot

Generic plotting
resample

More Random Samples
mUSMap

Make a US map with ggplot2
prop.test

Exact and Approximate Tests for Proportions
panel.lmbands

show confidence and preciction bands on plots
xpnorm

Augmented versions of pnorm and qnorm
panel.levelcontourplot

Lattice plot that draws a filled contour plot
project

Projections
named

List extraction
read.file

Read data files
.is.formula

Check if formula
mosaic.options

Setting options for mosaic package functions
theme_map

ggplot2 theme for maps
qdist

Illustrated quantile calculations from distributions
rand

Random Regressors
r.squared

Extract r-squared value
symbolicD

Symbolic Derivatives
prop

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

Check whether RStudio is in use
as.xtabs

Convert objects to xtabs format
googleMap

Display a point on earth on a Google Map
orrr

Odds Ratio and Relative Risk for 2 x 2 Contingency Tables
.polyExp

Takes a call and returns its polynomial coefficients
is.wholenumber

Check for whole number values
plotFun

Plotting mathematical expressions
rfun

Generate a natural-looking function
xqqmath

Augmented version of qqmath
statTally

Tally test statistics
symbolicInt

Find the symbolic integral of a formula
plotPoints

Scatter plot of points
update_ci

Update confidence interval
rkintegrate

A simple Runge-Kutte integrator
surround

Format strings for pretty output
zscore

Compute z-scores
standardName

Standardization of Geographic Names
tally

Tabulate categorical data
t_test

Student's t-Test
coef.function

Extract coefficients from a function
CIsim

Compute confidence intervals from (multiple) simulated data sets
MAD_

All pairs mean and sum of absolute differences
mean

Aggregating functions
evalFormula

Evaluate a formula
linear.algebra

Functions for teaching linear algebra.
makeFun

Create a function from a formula
mWorldMap

Make a world map with ggplot2
inferArgs

Infer arguments
interval

Extract summary statistics
numD

Numerical Derivatives
panel.plotFun1

Panel function for plotting functions
perctable

Cross tabulation displayed as percents or proportions
qdata

The Data Distribution
rlatlon

Sample longitude and latitude on a sphere
joinFrames

Join data frames