ARMA | R Documentation |
Creates an ARMA matrix of order one with parameters specified.
ARMA(x, rho=0.25, lambda=0.25)
x |
vector of the variable to define the factor levels for the ARMA covariance structure. |
rho |
rho value for the matrix. |
lambda |
dimensions of the square matrix. |
Specially useful for constructing covariance structures for rows and ranges to capture better the spatial variation trends in the field. The rho value is assumed fixed and values of the variance component will be optimized through REML.
If everything is defined correctly the function returns:
the correlation matrix
Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744
The core function of the package mmer
x <- 1:4
R1 <- ARMA(x,rho=.25,lambda=0.2)
image(R1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.