MESS0.5.12 package

Miscellaneous Esoteric Statistical Scripts

adaptive.weights

Compute weights for use with adaptive lasso.

add_torows

Fast addition of vector to each row of matrix

age

Compute the age of a person from two dates.

auc

Compute the area under the curve for two vectors.

bin

Fast binning of numeric vector into equidistant bins

categorize

A table function to use with magrittr pipes

clipit

Copy an object as R-code to the clipboard

cmd

Correlation matrix distance

col.alpha

Add and set alpha channel for RGB color

col.shade

Shade an RGB color

col.tint

Tint an RGB color

colCumSum

Apply cumsum to each column of matrix

common.shared

Compute a common shared environment matrix

conditional_rowMeans

Form row means conditional on number of non-missing

cumsumbinning

Binning based on cumulative sum with reset above threshold

dCor

Fast distance correlation matrix

dCov

Fast distance covariance matrix

drop1.geeglm

Drop All Possible Single Terms to a geeglm Model Using Wald or Score T...

drop1.geem

Drop All Possible Single Terms to a geem Model Using Wald or Score Tes...

expand_table

Expand table or matrix to data frame

extended.shared

Compute a common shared environment matrix

fac2num

Convert factor to numeric vector

feature.test

Inference for features identified by the Lasso

filldown

Fill down NA with the last observed observation

founder.shared

Compute a common shared environment matrix

geekin

Fit a generalized estimating equation (GEE) model with fixed additive ...

gkgamma

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

ht

Show the head and tail of an object

hwe_frequencies

Fast estimation of allele and genotype frequencies under Hardy-Weinber...

ks_cumtest

Kolmogorov-Smirnov goodness of fit test for cumulative discrete data

loadRData

Load and extract object from RData file

lower.tri.vector

Split Matrix by Clusters and Return Lower Triangular Parts as Vector

maximum_subarray

Fast computation of maximum sum subarray

MESS

Collection of miscellaneous useful and semi-useful functions

mfastLmCpp

Fast marginal simple regresion analyses

monte_carlo_chisq_test

Two-sided table test with fixed margins

ordered.clusters

Check if unique elements of a vector appear in contiguous clusters

pairwise.cor.test

Pairwise Tests for Association/Correlation Between Paired Samples

pairwise_combination_indices

Compute all pairwise combinations of indices

pairwise_Schur_product

Compute Schur products (element-wise) of all pairwise combinations of ...

panel.hist

Panel plot of histogram and density curve

panel.r2

Panel plot of R2 values for pairs

plr

Fast computation of several simple linear regressions

power_binom_test

Power Calculations for Exact Test of a simple null hypothesis in a Ber...

power_mcnemar_test

Power Calculations for Exact and Asymptotic McNemar Test in a 2 by 2 t...

power_prop_test

Power Calculations for Two-Sample Test for Proportions with unequal sa...

power_t_test

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

prepost.test

Pretest-posttest RCT for quantitative observations with possible missi...

qdiag

Fast extraction of matrix diagonal

QIC

Quasi Information Criterion

quadform

Fast quadratic form computation

repmat

Fast replication of a matrix

residual_plot

Plots a standardized residual

residualplot

Plots a standardized residual

rmvt.pedigree

Simulate residual multivariate t-distributed data from a polygenic mod...

rmvtnorm.pedigree

Simulate residual multivariate Gaussian data from a polygenic model

rnorm_perfect

Simulate values from a perfect normal distribution

rootonorm

Hanging rootogram for normal distribution

round_percent

Round vector of number to percentages

rud

Simulate randomized urn design

scorefct

Internal functions for the MESS package

screen_variables

Screen variable before penalized regression

segregate.genes

Segregate genes through a pedigree

sinv

Invert a symmetric positive-definite matrix

tracemp

Fast computation of trace of matrix product

usd

Unbiased standard deviation

wallyplot

Plots a Wally plot

write.xml

Write a data frame in XML format

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

  • Maintainer: Claus Thorn Ekstrøm
  • License: GPL-2
  • Last published: 2023-08-20