Learn R Programming

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

MESS (version 0.5.5)

Miscellaneous Esoteric Statistical Scripts

Description

A mixed collection of useful and semi-useful diverse statistical functions, some of which may even be referenced in The R Primer book.

Copy Link

Version

Install

install.packages('MESS')

Monthly Downloads

2,065

Version

0.5.5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Claus Ekstrm

Last Published

January 14th, 2019

Functions in MESS (0.5.5)

cmd

Correlation matrix distance
bdstat

Danish live births and deaths
repmat

Fast replication of a matrix
drop1.geem

Drop All Possible Single Terms to a geem Model Using Wald or Score Test
bees

Bee data. Number of different types of bees caught.
drop1.geeglm

Drop All Possible Single Terms to a geeglm Model Using Wald or Score Test
col.tint

Tint an RGB color
clotting

Blood clotting for 158 rats
wallyplot.default

Plots a Wally plot
feature.test

Inference for features identified by the Lasso
categorize

A table function to use with magrittr pipes
filldown

Fill down NA with the last observed observation
common.shared

Compute a common shared environment matrix
extended.shared

Compute a common shared environment matrix
fac2num

Convert factor to numeric vector
ks_cumtest

Kolmogorov-Smirnov goodness of fit test for cumulative discrete data
pairwise_Schur_product

Compute Schur products (element-wise) of all pairwise combinations of columns in matrix
age

Compute the age of a person from two dates.
lifeexpect

Estimated life expectancy for Danish newborns
col.shade

Shade an RGB color
auc

Compute the area under the curve for two vectors.
power_mcnemar_test

Power Calculations for Exact and Asymptotic McNemar Test in a 2 by 2 table
matched

Flu hospitalization
mfastLmCpp

Fast marginal simple regresion analyses
ordered.clusters

Check if unique elements of a vector appear in contiguous clusters
lower.tri.vector

Split Matrix by Clusters and Return Lower Triangular Parts as Vector
pairwise.cor.test

Pairwise Tests for Association/Correlation Between Paired Samples
QIC.geeglm

Quasi Information Criterion
monte_carlo_chisq_test

Two-sided table test with fixed margins
quadform

Fast quadratic form computation
power_prop_test

Power Calculations for Two-Sample Test for Proportions with unequal sample size
power_binom_test

Power Calculations for Exact Test of a simple null hypothesis in a Bernoulli experiment
bin

Fast binning of numeric vector into equidistant bins
tracemp

Fast computation of trace of matrix product
power_t_test

Power calculations for one and two sample t tests with unequal sample size
col.alpha

Add and set alpha channel for RGB color
prepost.test

Pretest-posttest RCT for quantitative observations with possible missing values
rainman

Perception of points in a swarm
rud

Simulate randomized urn design
qdiag

Fast extraction of matrix diagonal
scorefct

Internal functions for the MESS package
nh4

Ammonia nitrogen found in river
MESS

Collection of miscellaneous useful and semi-useful functions
pairwise_combination_indices

Compute all pairwise combinations of indices
kwdata

Non-parametric Kruskal Wallis data example
geekin

Fit a generalized estimating equation (GEE) model with fixed additive correlation structure
gkgamma

Goodman-Kruskal's gamma statistic for a two-dimensional table
ht

Show the head and tail of an object
residualplot.default

Plots a standardaized residual
picea

Ozone concentration damage to picea spruce
adaptive.weights

Compute weights for use with adaptive lasso.
qpcr

Gene expression from real-time quantitative PCR
rootonorm

Hanging rootogram for normal distribution
smokehealth

Effect of smoking on self reported health
conditional_rowMeans

Parallel means conditional on number of non-missing
soccer

Danish national soccer players
cumsumbinning

Binning based on cumulative sum with reset above threshold
round_percent

Round vector of number to percentages
superroot2

Gene expression data from two-color dye-swap experiment
add_torows

Fast addition of vector to each row of matrix
expand_table

Expand table or matrix to data frame
happiness

Happiness score and tax rates for 148 countries
segregate.genes

Segregate genes through a pedigree
earthquakes

Earthquakes in 2015
greenland

Average yearly summer air temperature for Tasiilaq, Greenland
panel.hist

Panel plot of histogram and density curve
screen_variables

Screen variable before penalized regression
sinv

Invert a symmetric positive-definite matrix
rmvt.pedigree

Simulate residual multivariate t-distributed data from a polygenic model
rmvtnorm.pedigree

Simulate residual multivariate Gaussian data from a polygenic model
write.xml

Write a data frame in XML format
icecreamads

Ice cream consumption and advertising
panel.r2

Panel plot of R2 values for pairs