calculateGCV | R Documentation |
Calculate the optimal B-spline model using generalized cross-validation
calculateGCV(object, topcomp = 5) ## S4 method for signature 'Rnits' calculateGCV(object, topcomp = 5)
object |
|
topcomp |
The number of top eigenvectors to be used for computation |
The optimal B-spline model is chosen as the largest model that minimizes the cross validation error of the top N eigenvectors of each time series data.
A list object with fields 'degree', 'df' for each time series data set.
# load pre-compiled expressionSet object for Ronen and Botstein yeast chemostat data data(yeastchemostat) rnitsobj = build.Rnits(yeastchemostat, logscale = TRUE, normmethod = 'Between') opt_model <- calculateGCV(rnitsobj) ## Not run: rnitsobj <- fit(rnitsobj, gene.level = TRUE, model = opt.model) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.