sme object, returns the roughness matrix which can be used to quickly
calculate the integrated squared second derivative of the mean and individual level curvessme functionBerk, M. & Montana, G. (2009). Functional modelling of microarray time series with covariate curves. Statistica, 2-3, 158-187
Green, P. J. & Silverman, B. W. (1994). Nonparametric Regression and Generalized Linear Models. Chapman and Hall
data(MTB)
fit <- sme(MTB[MTB$variable==6031,c("y","tme","ind")])
getRoughnessMatrix(fit)
Run the code above in your browser using DataLab