Description Usage Arguments Value Author(s) Examples

Coefficients evolution path plot from an object of the class 'LASSO' or 'SSI'

1 2 |

`fm` |
An object of the 'LASSO' or 'SSI' class |

`Z` |
(numeric matrix) Design matrix for random effects. When |

`K` |
(numeric matrix) Kinship relationships. This can be a name of a binary file where the matrix is stored. Only needed for a |

`tst` |
(integer vector) Which elements from vector |

`title` |
(character/expression) Title of the plot |

`maxCor` |
(numeric) Maximum correlation allowed for two different coefficients. A group of coeffcients with a correlation greater than |

Returns the plot of the coefficients' evolution path along the regularization parameter

Marco Lopez-Cruz (maraloc@gmail.com) and Gustavo de los Campos

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ```
require(SFSI)
data(wheatHTP)
index = which(Y$CV == 1) # Use only a subset of data
M = scale(M[index,])/sqrt(ncol(M)) # Subset and scale markers
G = tcrossprod(M) # Genomic relationship matrix
y = as.vector(scale(Y[index,"E1"])) # Subset response variable
X = scale(X_E1[index,]) # Reflectance data
# Sparse phenotypic regression
fm1 = lars2(var(X),cov(y,X))
# Sparse family index
fm2 = SSI(y,K=G,tst=1:10,trn=11:50)
plotPath(fm1)
plotPath(fm2,maxCor=0.6)
plotPath(fm2,K=G,maxCor=0.6)
# Path plot for the first individual in testing set for the SSI
plotPath(fm2,K=G,tst=fm2$tst[1])
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.