View source: R/NumberKnotsChoice.R
BasisDimension.Choice | R Documentation |
Generates a line plot reporting the cross-validated loglikelihood value for each number of knots. In details, for each number of knots 10\
BasisDimension.Choice(data, p, save = FALSE, path = NULL, Cores = 1)
data |
CONNECTORList. (see |
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. |
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.
Cordero Francesca, Pernice Simone, Sirovich Roberta
Gareth M. James and Catherine A. Sugar, (2000). Principal component models for sparse functional data.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.