philips-software / latrend

An R package for clustering longitudinal datasets in a standardized way, providing interfaces to various R packages for longitudinal clustering, and facilitating the rapid implementation and evaluation of new methods
https://philips-software.github.io/latrend/
GNU General Public License v2.0
28 stars 5 forks source link

latrend arguments not passed through lcFit methods #128

Closed niekdt closed 1 year ago

niekdt commented 1 year ago

The update method of meta methods should be revised to allow for pass-through of undefined arguments.

Steps to reproduce:

data(latrendData)
kmlMethod = lcMethodKML(response = "Y", id = "Id", time = "Time", nClusters = 2)
repMethod = lcFitRepMin(kmlMethod, rep = 2, "BIC")
# will fit 2 instead of 3 clusters
kml = latrend(repMethod, data = latrendData, nClusters = 3)
nClusters(kml)