calculateGCV-methods: Calculate the optimal B-spline model using generalized...

Description Usage Arguments Details Value Examples

Description

Calculate the optimal B-spline model using generalized cross-validation

Usage

1
2
3
4
calculateGCV(object, topcomp = 5)

## S4 method for signature 'Rnits'
calculateGCV(object, topcomp = 5)

Arguments

object

Rnits object

topcomp

The number of top eigenvectors to be used for computation

Details

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.

Value

A list object with fields 'degree', 'df' for each time series data set.

Examples

1
2
3
4
5
6
7
8
# 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)

Rnits documentation built on Nov. 8, 2020, 6:26 p.m.