refunders / refund

Regression with functional data
39 stars 23 forks source link

fixed a small bug in mfpca.face #106

Closed ecui1 closed 1 year ago

ecui1 commented 1 year ago

Fixed a small bug in mfpca.face(), that occurs when only one eigenfunction explains all the variance in the within-subject covariance structure. This bug can be easily fixed by changing Phi.N <- Phi[,1:N] to Phi.N <- Phi[,1:N, drop = FALSE] in the face.Cov.mfpca() function. We would like to thank Edward.Gunning Edward.Gunning@ul.ie for raising this issue and providing a quick fix.