Methods_SSI: SSI methods

Description Usage Arguments Author(s) Examples

Description

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'SSI'
coef(object, ..., df=NULL, tst=NULL)

## S3 method for class 'SSI'
fitted(object, ...)

## S3 method for class 'SSI'
summary(object, ...)
  
## S3 method for class 'SSI'
plot(..., title=NULL, py=c("accuracy","MSE"))

Arguments

object

An object of the class 'SSI'. One or more objects must be passed as ... in the function plot

df

Average (across testing individuals) number of non-zero regression coefficients

tst

Vector of integers indicating which individuals are in testing set. Default tst=NULL will consider all individuals in object$tst

py

Indicates whether to plot correlation (between observed and predicted) or MSE in y-axis

title

Title of the plot

...

Arguments to be passed:

  • object: One or more objects of the class 'SSI' (for function plot)

  • Not needed for summary and fitted functions

Author(s)

Marco Lopez-Cruz (lopezcru@msu.edu) and Gustavo de los Campos

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  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
  
  fm1 = SSI(y,K=G,tst=1:100,trn=101:length(y),alpha=0.5)
  
  yHat = fitted(fm1)        # Predicted values for each SSI
  corTST = summary(fm1)$accuracy  # Testing set accuracy (correlation cor(y,yHat))
  summary(fm1)$optCOR       # SSI with maximum accuracy
  summary(fm1)$optMSE       # SSI with minimum MSE
  plot(fm1,title=expression('corr('*y[obs]*','*y[pred]*') vs sparsity'))   
  plot(fm1,py="MSE",title='Mean Square Error vs sparsity')     

MarcooLopez/SFSI_data documentation built on April 15, 2021, 10:53 a.m.