diff --git a/articles/simulation.html b/articles/simulation.html index d1bc864b..1864a128 100644 --- a/articles/simulation.html +++ b/articles/simulation.html @@ -342,9 +342,9 @@
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
formula(method) # Y ~ Time
#> Y ~ Time
-#> <environment: 0x557f25974f88>
+#> <environment: 0x55fa8febc100>
Metrics
latrend: A Framework for Clustering Longitudinal Data
Get the cluster membership of each trajectory
transformFitted
transformFitted,NULL,lcModel-method
transformFitted,matrix,lcModel-method
transformFitted,list,lcModel-method
transformFitted,data.frame,lcModel-method
Helper function for custom lcModel classes implementing fitted.lcModel()
transformPredict
transformPredict,NULL,lcModel-method
transformPredict,vector,lcModel-method
transformPredict,matrix,lcModel-method
transformPredict,data.frame,lcModel-method
Helper function for custom lcModel classes implementing predict.lcModel()
Arguments passed to akmedoids::akclustr. +
Arguments passed to akmedoids::akclustr. The following external arguments are ignored: traj, id_field, k
data(latrendData)
-if (require("akmedoids")) {
+if (require("akmedoids")) {
method <- lcMethodAkmedoids(response = "Y", time = "Time", id = "Id", nClusters = 3)
model <- latrend(method, data = latrendData)
}
#> Loading required package: akmedoids
-#> Error: 'akclustr' is not an exported object from 'namespace:akmedoids'
+#> [1] "Processing...."
+#> [1] ".............."
+#> [1] "solution of k = 3 determined!"
data(latrendData)
-if (require("kml")) {
+if (require("kml")) {
method <- lcMethodKML("Y", id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)
}
diff --git a/reference/lcMethodMclustLLPA.html b/reference/lcMethodMclustLLPA.html
index b99b2650..307f1813 100644
--- a/reference/lcMethodMclustLLPA.html
+++ b/reference/lcMethodMclustLLPA.html
@@ -139,7 +139,7 @@ Examples
model <- latrend(method, latrendData)
}
#> Loading required package: mclust
-#> Package 'mclust' version 6.0.0
+#> Package 'mclust' version 6.0.1
#> Type 'citation("mclust")' for citing this R package in publications.
if (FALSE) {
data(latrendData)
-if (require("kml")) {
+if (require("kml")) {
model <- latrend(method = lcMethodKML("Y", id = "Id", time = "Time"), latrendData)
predictAssignments(model, newdata = data.frame(Id = 999, Y = 0, Time = 0))
}
diff --git a/reference/transformFitted.html b/reference/transformFitted.html
index 7ff26df5..ddcb61ba 100644
--- a/reference/transformFitted.html
+++ b/reference/transformFitted.html
@@ -102,7 +102,7 @@ Helper function for custom lcModel classes implementing fitted.lcModel()
transformFitted(pred, model, clusters)
-# S4 method for `NULL`,lcModel
+# S4 method for NULL,lcModel
transformFitted(pred, model, clusters = NULL)
# S4 method for matrix,lcModel
diff --git a/reference/transformPredict.html b/reference/transformPredict.html
index a4a6451b..2cb9b650 100644
--- a/reference/transformPredict.html
+++ b/reference/transformPredict.html
@@ -106,7 +106,7 @@ Helper function for custom lcModel classes implementing predict.lcModel()
transformPredict(pred, model, newdata)
-# S4 method for `NULL`,lcModel
+# S4 method for NULL,lcModel
transformPredict(pred, model, newdata)
# S4 method for vector,lcModel
diff --git a/reference/which.weight.html b/reference/which.weight.html
index adecc05c..2669b778 100644
--- a/reference/which.weight.html
+++ b/reference/which.weight.html
@@ -89,7 +89,7 @@ Value
Examples
x = c(.01, .69, .3)
which.weight(x) #1, 2, or 3
-#> [1] 3
+#> [1] 2