Displaying 1 result from an estimated 1 matches for "generatedfrom".
2020 Oct 04
1
Help in R code
...ours its give the results in the form ofNA. the code is given below
?
fdata<- function(mat){
? nb = 27 # number of basis functions for the data
? fbf = create.fourier.basis(rangeval=c(0,1), nbasis=nb) #basis for data
? args=seq(0,1,length=24)
? fdata1=Data2fd(args,y=t(mat),fbf) # functions generatedfrom discretized y
? return(fdata1)
}
prediction.ffpe = function(fdata1){
? n = ncol(fdata1$coef)
? D = nrow(fdata1$coef)
? #center the data
? #mu = mean.fd(fdata1)
? data = center.fd(fdata1)
? #ffpe = fFPE(fdata1, Pmax=10)
? #p.hat = ffpe[2] #order of the model
? d.hat=23
? p.hat=6
? #fPCA...