All functions

MESS

Collection of miscellaneous useful and semi-useful functions

QIC

Quasi Information Criterion

adaptive.weights

Compute weights for use with adaptive lasso.

age

Compute the age of a person from two dates.

auc

Compute the area under the curve for two vectors.

bdstat

Danish live births and deaths

bees

Bee data. Number of different types of bees caught.

categorize

A table function to use with magrittr pipes

clotting

Blood clotting for 158 rats

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

common.shared

Compute a common shared environment matrix

cumsumbinning

Binning based on cumulative sum with reset above threshold

drop1

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

drop1

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

earthquakes

Earthquakes in 2015

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

geekin

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

gkgamma

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

greenland

Average yearly summer air temperature for Tasiilaq, Greenland

happiness

Happiness score and tax rates for 148 countries

ht

Show the head and tail of an object

icecreamads

Ice cream consumption and advertising

ks_cumtest

Kolmogorov-Smirnov goodness of fit test for cumulative discrete data

kwdata

Non-parametric Kruskal Wallis data example

lifeexpect

Estimated life expectancy for Danish newborns

lower.tri.vector

Split Matrix by Clusters and Return Lower Triangular Parts as Vector

matched

Flu hospitalization

mestimate

Moment estimator

mfastLmCpp

Fast marginal simple regresion analyses

nh4

Ammonia nitrogen found in river

onemargintest

Two-sided table test with fixed margins

ordered.clusters

Check if unique elements of a vector appear in contiguous clusters

pairwise_Schur_product

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

panel.hist

Panel plot of histogram and density curve

panel.r2

Panel plot of R2 values for pairs

picea

Ozone concentration damage to picea spruce

power_binom_test

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

power_mcnemar_test

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

power_prop_test

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

power_t_test

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

prepost.test

Pretest-posttest RCT for quantitative observations with possible missing values

qdiag

Fast extraction of matrix diagonal

qpcr

Gene expression from real-time quantitative PCR

quadform

Fast quadratic form computation

rainman

Perception of points in a swarm

repmat

Fast replication of a matrix

residualplot

Plots a standardaized residual

rmvt.pedigree

Simulate residual multivariate t-distributed data from a polygenic model

rmvtnorm.pedigree

Simulate residual multivariate Gaussian data from a polygenic model

rootonorm

Hanging rootogram for normal distribution

round_percent

Round vector of number to percentages

rowMeansCond

Parallel mean

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

smokehealth

Effect of smoking on self reported health

soccer

Danish national soccer players

superroot2

Gene expression data from two-color dye-swap experiment

tracemp

Fast computation of trace of matrix product

wallyplot

Plots a Wally plot

write.xml

Write a data frame in XML format