Learn R Programming

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

sommer: Solving Mixed Model Equations in R

Structural multivariate-univariate linear mixed model solver for estimation of multiple random effects and unknown variance-covariance structures (i.e. heterogeneous and unstructured variance models) (Covarrubias-Pazaran, 2016; Maier et al., 2015). REML estimates can be obtained using the Direct-Inversion Newton-Raphson and Direct-Inversion Average Information algorithms. Designed for genomic prediction and genome wide association studies (GWAS), particularly focused in the p > n problem (more coefficients than observations) and dense known covariance structures for levels of random effects. Spatial models can also be fitted using i.e. the two-dimensional spline functionality available in sommer.

Installation

You can install the development version of sommer from GitHub:

devtools::install_github('covaruber/sommer')

Vignettes

Copy Link

Version

Install

install.packages('sommer')

Monthly Downloads

7,425

Version

4.1.6

License

GPL (>= 2)

Maintainer

Giovanny Covarrubias-Pazaran

Last Published

April 17th, 2022

Functions in sommer (4.1.6)

AR1

Autocorrelation matrix of order 1.
CS

Compound symmetry matrix
DT_augment

DT_augment design example.
ARMA

Autocorrelation Moving average.
A.mat

Additive relationship matrix
D.mat

Dominance relationship matrix
DT_example

Broad sense heritability calculation.
DT_cpdata

Genotypic and Phenotypic data for a CP population
DT_btdata

Blue Tit Data for a Quantitative Genetic Experiment
DT_cornhybrids

Corn crosses and markers
DT_expdesigns

Data for different experimental designs
DT_polyploid

Genotypic and Phenotypic data for a potato polyploid population
MEMMA

Multivariate Efficient Mixed Model Association Algorithm
GWAS

Genome wide association study analysis
DT_fulldiallel

Full diallel data for corn hybrids
DT_gryphon

Gryphon data from the Journal of Animal Ecology
DT_h2

Broad sense heritability calculation.
E.mat

Epistatic relationship matrix
build.HMM

Build a hybrid marker matrix using parental genotypes from inbred individuals
EM

Expectation Maximization Algorithm
bivariateRun

bivariateRun functionality
DT_rice

Rice lines dataset
fixm

fixed indication matrix
DT_legendre

Simulated data for random regression
DT_mohring

Full diallel data for corn hybrids
bathy.colors

Generate a sequence of colors for plotting bathymetric data.
DT_technow

Genotypic and Phenotypic data from single cross hybrids (Technow et al.,2014)
gvs

general variance structure specification
anova.mmer

anova form a GLMM fitted with mmer
adiag1

Binds arrays corner-to-corner
DT_sleepstudy

Reaction times in a sleep deprivation study
map.plot

Creating a genetic map plot
jet.colors

Generate a sequence of colors alog the jet colormap.
atcg1234

Letter to number converter
at

at covariance structure
DT_halfdiallel

half diallel data for corn hybrids
bbasis

Function for creating B-spline basis functions (Eilers & Marx, 2010)
leg

Legendre polynomial matrix
dfToMatrix

data frame to matrix
transp

Creating color with transparency
ds

diagonal covariance structure
simGECorMat

Create a GE correlation matrix for simulation purposes.
vpredict

vpredict form of a LMM fitted with mmer
vs

variance structure specification
sommer-package

Solving Mixed Model Equations in R Figure: mai.png
spl2Dmats

Get Tensor Product Spline Mixed Model Incidence Matrices
h2.fun

Obtain heritabilities with three different methods
DT_yatesoats

Yield of oats in a split-block experiment
DT_ige

Data to fit indirect genetic effects.
mmer

mixed model equations in R
GWAS2

Genome wide association study
coef.mmer

coef form a GLMM fitted with mmer
summary.mmer

summary form a GLMM fitted with mmer
DT_wheat

wheat lines dataset
uncm

unconstrained indication matrix
H.mat

Combined relationship matrix H
add.diallel.vars

add.diallel.vars
fitted.mmer

fitted form a LMM fitted with mmer
list2usmat

list or vector to unstructured matrix
LD.decay

Calculation of linkage disequilibrium decay
fcm

fixed effect constraint indication matrix
cs

customized covariance structure
plot.mmer

plot form a LMM plot with mmer
imputev

Imputing a numeric or character vector
mmer2

mixed model equations in R
predict.mmer

Predict form of a LMM fitted with mmer
overlay

Overlay Matrix
tpsmmbwrapper

Get Tensor Product Spline Mixed Model Incidence Matrices
residuals.mmer

Residuals form a GLMM fitted with mmer
wald.test

Wald Test for Model Coefficients
randef

extracting random effects
spl2Da

Two-dimensional penalised tensor-product of marginal B-Spline basis.
manhattan

Creating a manhattan plot
spl2Db

Two-dimensional penalised tensor-product of marginal B-Spline basis.
transformConstraints

transformConstraints
unsm

unstructured indication matrix
us

unstructured covariance structure