Description Usage Arguments Author(s) Examples
Plot the coefficients evolution path along the regularization parameter
| 1 2 | 
| fm | An object of the 'LASSO' or 'SSI' class | 
| Z | Design matrix for the random effects. When  | 
| K | Kinship relationships matrix. This can be a name of a binary file where the matrix is stored. Only needed when a  | 
| indexK | Vector of integers indicating which columns and rows will be read when  | 
| tst | Vector of integers indicating which individuals are in testing set and must be contained in  | 
| title | A 'character' type string for the plot title | 
| maxCor | Maximum correlation allowed for two different coefficients. A group of coeffcients with a correlation greater than  | 
Marco Lopez-Cruz (lopezcru@msu.edu) 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 |   require(SFSI)
  data(wheatHTP)
  X = scale(X[1:300,])         # Subset and scale markers
  G = tcrossprod(X)/ncol(X)    # Genomic relationship matrix
  y = scale(Y[1:300,"YLD"])    # Subset response variable
  WL = scale(WL[1:300,])       # Reflectance data
  
  # Sparse phenotypic regression
  fm1 = lars2(var(WL),cov(y,WL))
  
  # Sparse family index
  fm2 = SSI(y,K=G,tst=1:15,trn=16:length(y))
  
  ## Not run: 
  plotPath(fm1)
  plotPath(fm2,maxCor=0.6)
  plotPath(fm2,K=G,maxCor=0.6)
  
## End(Not run)
  
  # Path plot for the first individual in testing set for the SSI
  plotPath(fm2,K=G,tst=fm2$tst[1])
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.