The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

clustEff

CRAN status R-CMD-check

‘clustEff’ clusters curves with the shape-distance dissimilarity of Sottile and Adelfio (2019): the effects curves of quantile regression coefficients models (fitted with ‘qrcm’, with one or more responses) and curves observed in time. It also implements the FPCAC algorithm (trimmed k-means of functional principal component scores) for waveforms.

Installation

install.packages("clustEff")
# development version
remotes::install_github("gianluca-sottile/clustEff")

Example

library(clustEff)
set.seed(1234)
tt <- seq(0, 1, length.out = 100)
W <- cbind(sapply(1:5, function(i) sin(3 * pi * tt) + rnorm(100, 0, 0.1)),
           sapply(1:5, function(i) cos(3 * pi * tt) + rnorm(100, 0, 0.1)),
           sapply(1:5, function(i) sin(3 * pi * tt) * cos(pi * tt) + rnorm(100, 0, 0.1)))
fit <- clustEff(W, p = tt, k = c(2, 5), smooth = TRUE)
fit
#> 
#> Call:
#> clustEff(curves = W, p = tt, k = c(2, 5), smooth = TRUE)
#> 
#> Clusters of curves: 3 clusters of sizes 5, 5, 5
#> Dissimilarity: step = "both", alpha = 0.5, derivative = 2, combine = "product"
#> Agglomeration method: ward.D2   criterion: height
#> 
fit$clusters
#>  X1  X2  X3  X4  X5  X6  X7  X8  X9 X10 X11 X12 X13 X14 X15 
#>   1   1   1   1   1   2   2   2   2   2   3   3   3   3   3 

References

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.