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 functiondata(MTB)
fit <- sme(MTB[MTB$variable==6031,c("y","tme","ind")])
getRoughnessMatrix(fit)Run the code above in your browser using DataLab