Learn R Programming

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

MESS (version 0.5.7)

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,056

Version

0.5.7

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 21st, 2020

Functions in MESS (0.5.7)

add_torows

Fast addition of vector to each row of matrix
QIC.geeglm

Quasi Information Criterion
bin

Fast binning of numeric vector into equidistant bins
categorize

A table function to use with magrittr pipes
bees

Bee data. Number of different types of bees caught.
auc

Compute the area under the curve for two vectors.
MESS

Collection of miscellaneous useful and semi-useful functions
bdstat

Danish live births and deaths
adaptive.weights

Compute weights for use with adaptive lasso.
cumsumbinning

Binning based on cumulative sum with reset above threshold
age

Compute the age of a person from two dates.
dCov

Fast distance covariance matrix
col.tint

Tint an RGB color
col.alpha

Add and set alpha channel for RGB color
conditional_rowMeans

Form row means conditional on number of non-missing
clotting

Blood clotting for 158 rats
drop1.geeglm

Drop All Possible Single Terms to a geeglm Model Using Wald or Score Test
matched

Flu hospitalization
common.shared

Compute a common shared environment matrix
lower.tri.vector

Split Matrix by Clusters and Return Lower Triangular Parts as Vector
colCumSum

Apply cumsum to each column of matrix
happiness

Happiness score and tax rates for 148 countries
greenland

Average yearly summer air temperature for Tasiilaq, Greenland
ordered.clusters

Check if unique elements of a vector appear in contiguous clusters
col.shade

Shade an RGB color
cmd

Correlation matrix distance
panel.hist

Panel plot of histogram and density curve
extended.shared

Compute a common shared environment matrix
icecreamads

Ice cream consumption and advertising
expand_table

Expand table or matrix to data frame
dCor

Fast distance correlation matrix
drop1.geem

Drop All Possible Single Terms to a geem Model Using Wald or Score Test
panel.r2

Panel plot of R2 values for pairs
feature.test

Inference for features identified by the Lasso
geekin

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

Convert factor to numeric vector
round_percent

Round vector of number to percentages
rud

Simulate randomized urn design
power_prop_test

Power Calculations for Two-Sample Test for Proportions with unequal sample size
pairwise.cor.test

Pairwise Tests for Association/Correlation Between Paired Samples
quadform

Fast quadratic form computation
qpcr

Gene expression from real-time quantitative PCR
power_t_test

Power calculations for one and two sample t tests with unequal sample size
gkgamma

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

Show the head and tail of an object
earthquakes

Earthquakes in 2015
hwe_frequencies

Fast estimation of allele and genotype frequencies under Hardy-Weinberg equilibrium
filldown

Fill down NA with the last observed observation
sinv

Invert a symmetric positive-definite matrix
segregate.genes

Segregate genes through a pedigree
pairwise_Schur_product

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

Compute all pairwise combinations of indices
ks_cumtest

Kolmogorov-Smirnov goodness of fit test for cumulative discrete data
prepost.test

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

Non-parametric Kruskal Wallis data example
founder.shared

Compute a common shared environment matrix
picea

Ozone concentration damage to picea spruce
rnorm_perfect

Simulate values from a perfect normal distribution
rootonorm

Hanging rootogram for normal distribution
smokehealth

Effect of smoking on self reported health
plr

Fast computation of several simple linear regressions
nh4

Ammonia nitrogen found in river
monte_carlo_chisq_test

Two-sided table test with fixed margins
soccer

Danish national soccer players
repmat

Fast replication of a matrix
qdiag

Fast extraction of matrix diagonal
rainman

Perception of points in a swarm
superroot2

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

Estimated life expectancy for Danish newborns
tracemp

Fast computation of trace of matrix product
usd

Unbiased standard deviation
maximum_subarray

Fast computation of maximum sum subarray
mfastLmCpp

Fast marginal simple regresion analyses
power_binom_test

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

Screen variable before penalized regression
residualplot.default

Plots a standardized residual
power_mcnemar_test

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

Internal functions for the MESS package
residual_plot

Plots a standardized residual
write.xml

Write a data frame in XML format
rmvt.pedigree

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

Simulate residual multivariate Gaussian data from a polygenic model
wallyplot.default

Plots a Wally plot