lcMethodFunFEM: Specify a FunFEM method

Description Usage Arguments References See Also Examples

View source: R/methodFunFEM.R

Description

Specify a FunFEM method

Usage

1
2
3
4
5
6
7
8
lcMethodFunFEM(
  response,
  time = getOption("latrend.time"),
  id = getOption("latrend.id"),
  nClusters = 2,
  basis = function(time) fda::create.bspline.basis(time, nbasis = 10, norder = 4),
  ...
)

Arguments

response

The name of the response variable.

time

The name of the time variable.

id

The name of the trajectory identifier variable.

nClusters

The number of clusters to estimate.

basis

The basis function. By default, a 3rd-order B-spline with 10 breaks is used.

...

Arguments passed to funFEM::funFEM. The following external arguments are ignored: fd, K, disp, graph.

References

\insertRef

bouveyron2015funfemlatrend

See Also

Other lcMethod implementations: lcMethod-class, lcMethodAkmedoids, lcMethodCrimCV, lcMethodCustom, lcMethodDtwclust, lcMethodFeature, lcMethodGCKM, lcMethodKML, lcMethodLMKM, lcMethodLcmmGBTM, lcMethodLcmmGMM, lcMethodLongclust, lcMethodMclustLLPA, lcMethodMixAK_GLMM, lcMethodMixtoolsGMM, lcMethodMixtoolsNPRM, lcMethodRandom, lcMethodStratify

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(funFEM)
library(fda)
data(latrendData)
method <- lcMethodFunFEM("Y", id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)

method <- lcMethodFunFEM("Y",
   basis = function(time) {
      create.bspline.basis(time,
        nbasis = 10, norder = 4)
})

latrend documentation built on April 14, 2021, 5:08 p.m.