Learn R Programming

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

asremlPlus (version 4.4.58)

Augments 'ASReml-R' in Fitting Mixed Models and Packages Generally in Exploring Prediction Differences

Description

Assists in automating the selection of terms to include in mixed models when 'asreml' is used to fit the models. Procedures are available for choosing models that conform to the hierarchy or marginality principle, for fitting and choosing between two-dimensional spatial models using correlation, natural cubic smoothing spline and P-spline models. A history of the fitting of a sequence of models is kept in a data frame. Also used to compute functions and contrasts of, to investigate differences between and to plot predictions obtained using any model fitting function. The content falls into the following natural groupings: (i) Data, (ii) Model modification functions, (iii) Model selection and description functions, (iv) Model diagnostics and simulation functions, (v) Prediction production and presentation functions, (vi) Response transformation functions, (vii) Object manipulation functions, and (viii) Miscellaneous functions (for further details see 'asremlPlus-package' in help). The 'asreml' package provides a computationally efficient algorithm for fitting a wide range of linear mixed models using Residual Maximum Likelihood. It is a commercial package and a license for it can be purchased from 'VSNi' as 'asreml-R', who will supply a zip file for local installation/updating (see ). It is not needed for functions that are methods for 'alldiffs' and 'data.frame' objects. The package 'asremPlus' can also be installed from .

Copy Link

Version

Install

install.packages('asremlPlus')

Monthly Downloads

850

Version

4.4.58

License

MIT + file LICENSE

Maintainer

Chris Brien

Last Published

April 12th, 2026

Functions in asremlPlus (4.4.58)

Ladybird.dat

Data for an experiment to investigate whether ladybirds transfer aphids
ChickpeaEnd.dat

A large data set comprising the end of imaging data from a chick pea experiment conducted in high-throughput greenhouses
WaterRunoff.dat

Data for an experiment to investigate the quality of water runoff over time
addBacktransforms.alldiffs

Adds or recalculates the backtransforms component of an alldiffs.object.
R2adj.asreml

Calculates the adjusted coefficient of determination for a specified combination of fixed and random terms.
LSD.frame

Description of an LSD frame
addSpatialModel.asrtests

Adds, to a supplied model, a spatial model that accounts for local spatial variation.
Oats.dat

Data for an experiment to investigate nitrogen response of 3 oats varieties
Wheat.dat

Data for a 1976 experiment to investigate 25 varieties of wheat
REMLRT.asreml

Performs a REML ratio test to compare two models.
as.predictions.frame

Forms a predictions.frame from a data.frame, ensuring that the correct columns are present.
asremlPlus-deprecated

Deprecated Functions in the Package asremlPlus
angular

Applies the angular transformation to proportions.
alldiffs.object

Description of an alldiffs object
allDifferences.data.frame

Using supplied predictions and standard errors of pairwise differences or the variance matrix of predictions, forms all pairwise differences between the set of predictions, and p-values for the differences.
angular.mod

Applies the modified angular transformation to a vector of counts.
addSpatialModelOnIC.asrtests

Uses information criteria to decide whether to add a spatial model to account for local spatial variation.
as.alldiffs

Forms an alldiffs.object from the supplied predictions, along with those statistics, associated with the predictions and their pairwise differences, that have been supplied.
as.asrtests

Forms an asrtests object that stores (i) a fitted asreml object, (ii) a pseudo-anova table for the fixed terms and (iii) a history of changes and hypothesis testing used in obtaining the model.
addto.test.summary

Adds a row to a test.summary data.frame.
chooseModel.data.frame

asrtests.object

Description of an asrtests object
chooseModel

changeModelOnIC.asrtests

Uses information criteria to decide whether to change an already fitted model.
changeTerms.asrtests

Adds and drops terms from one or both of the fixed or random model, replaces the residual (rcov) model with a new model and changes bounds or initial values of terms.
chooseModel.asrtests

Determines and records the set of significant terms using an asrtests.object, taking into account the hierarchy or marginality relations of the terms.
asremlPlusTips

The randomly-presented, startup tips.
asremlPlus-package

tools:::Rd_package_title("asremlPlus")
chooseSpatialModelOnIC.asrtests

Uses information criteria to choose the best fitting spatial model for accounting for local spatial variation.
bootREMLRT.asreml

Uses the parametric bootstrap to calculate the p-value for a REML ratio test to compare two models.
facCombine.alldiffs

Combines several factors into one in the components of an alldiffs.object
exploreLSDs.alldiffs

Explores the computed LSD values for pairwise differences between predictions.
findLSDminerrors.alldiffs

Find LSD values that minimize the number of errors in pairwise comparisons of predictions.
convAsremlobj.asreml

Recreates an asreml object so that it is compatible with the currently loaded asreml version.
getASRemlVersionLoaded

Finds the version of asreml that is loaded and returns the initial characters in version.
getFormulae.asreml

Gets the formulae from an asreml object.
facRename.alldiffs

Renames factors in the prediction component of an alldiffs.object.
estimateV.asreml

Forms the estimated variance, random or residual matrix for the observations from the variance parameter estimates.
facRecast.alldiffs

Reorders and/or revises the factor levels using the order of old levels in levels.order and the new labels for the levels given in newlabels. The values in levels.order must be unique.
convEffectNames2DataFrame.asreml

getTestPvalue.asrtests

Gets the p-value for a test recorded in the test.summary data.frame of an asrtests.object
infoCriteria

Computes AIC and BIC for models.
is.alldiffs

Tests whether an object is of class alldiffs
isCompoundSymmetric.matrix

Tests whether an object of class matrix is compound symmetric
linTransform.alldiffs

Calculates a linear transformation of the predictions stored in an alldiffs.object.
is.predictions.frame

Tests whether an object is of class predictions.frame
is.asrtests

Tests whether an object is of class asrtests
iterate.asrtests

Subject the fitted asreml.obj stored in an asrtests.object to further iterations of the fitting process.
loadASRemlVersion

Ensures that a specific version of asreml is loaded.
getTestEntry.asrtests

Gets the entry for a test recorded in the test.summary data.frame of an asrtests.object
pickLSDstatistics.alldiffs

Pick LSDstatistics whose values minimize the number of errors in pairwise comparisons of predictions.
newfit.asreml

Refits an asreml model with changed arguments by extracting, modifying and evaluating its call - an alternate to update.asreml.
permute.to.zero.lowertri

Permutes a square matrix until all the lower triangular elements are zero.
makeTPPSplineMats.data.frame

Make the spline basis matrices and data needed to fit Tensor Product P-splines.
plotLSDerrors.alldiffs

Plots a map of the errors that occur in using the computed LSD values for pairwise differences between predictions.
plotLSDerrors.data.frame

Plots a map of the supplied errors that occur in using the computed LSD values for pairwise differences between predictions.
permute.square

Permutes the rows and columns of a square matrix.
num.recode

Recodes the unique values of a vector using the values in a new vector.
pairdiffsTransform.alldiffs

Calculates the differences between nominated pairs of predictions stored in an alldiffs.object.
plotLSDs.alldiffs

Plots a heat map of computed LSD values for pairwise differences between predictions.