Description Usage Arguments Value Author(s) Examples
Collects all outputs saved at the provided saveAt
parameter from the SSI analysis when testing data was splited
according to subset
parameter.
1 | collect(prefix = "")
|
prefix |
Prefix that was added to the output files name, this may include a path |
An object of the class 'SSI' for which methods fitted
, plot
and summary
exist
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 | 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
prefix <- paste0(tempdir(),"/testSSI")
# Run the analysis into 4 subsets and save them at a given prefix
fm <- SSI(y,K=G,tst=1:100,trn=101:length(y),subset=c(1,4),saveAt=prefix)
fm <- SSI(y,K=G,tst=1:100,trn=101:length(y),subset=c(2,4),saveAt=prefix)
fm <- SSI(y,K=G,tst=1:100,trn=101:length(y),subset=c(3,4),saveAt=prefix)
fm <- SSI(y,K=G,tst=1:100,trn=101:length(y),subset=c(4,4),saveAt=prefix)
# Collect all results after completion
fm <- collect(prefix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.