BasisDimension.Choice: Choice of the B-spline dimension

View source: R/NumberKnotsChoice.R

BasisDimension.ChoiceR Documentation

Choice of the B-spline dimension

Description

Generates a line plot reporting the cross-validated loglikelihood value for each number of knots. In details, for each number of knots 10\

Usage

BasisDimension.Choice(data, p, save = FALSE, path = NULL, Cores = 1)

Arguments

data

CONNECTORList. (see DataImport)

p

The vector of the dimension of the natural cubic spline basis.

save

If TRUE then the plot is saved into a pdf file.

path

The folder path where the plot will be saved. If it is missing, the plot is saved in the current working directory.

Cores

Number of cores to parallelize computations.

Value

DimensionBasis.Choice returns line plot of the cross-validated loglikelihood for each value of p, in grey the result of all ten repetitions of the likelihood calculation and in black the mean of them.

Author(s)

Cordero Francesca, Pernice Simone, Sirovich Roberta

References

Gareth M. James and Catherine A. Sugar, (2000). Principal component models for sparse functional data.

Examples


GrowDataFile<-"data/745dataset.xls"
AnnotationFile <-"data/745info.txt"

CONNECTORList <- DataImport(GrowDataFile,AnnotationFile)

CONNECTORList<- DataTruncation(CONNECTORList,"Progeny",truncTime=50,labels = c("time","volume","Tumor Growth"))

CrossLogLike<-BasisDimension.Choice(CONNECTORList,2:6)
CrossLogLike$CrossLogLikePlot


sysbioTurin/connector documentation built on April 9, 2024, 12:10 p.m.