lcMethod class
Base class used to define a longitudinal cluster method. It is implemented as a wrapper around a call.
Model estimation is handled through a series of calls implement by the lcMethod object. The calls are made by latrend, in the following order:
compose
validate
prepareData
preFit
fit
postFit
Extracts the assigned label.
Extracts the name of the given object.
## S4 method for signature 'lcMethod' compose(method, envir = NULL) ## S4 method for signature 'lcMethod' fit(method, data, envir, verbose) ## S4 method for signature 'lcMethod' getLabel(object, ...) ## S4 method for signature 'lcMethod' getName(object) ## S4 method for signature 'lcMethod' getShortName(object, ...) ## S4 method for signature 'lcMethod' length(x) ## S4 method for signature 'lcMethod' names(x) ## S4 method for signature 'lcMethod' preFit(method, data, envir, verbose) ## S4 method for signature 'lcMethod' prepareData(method, data, verbose) ## S4 method for signature 'lcMethod' postFit(method, data, model, envir, verbose) ## S4 method for signature 'lcMethod' validate(method, data, envir = NULL, ...)
method |
The |
envir |
The |
data |
The data, as a |
verbose |
A R.utils::Verbose object indicating the level of verbosity. |
object |
The object to extract the label from. |
... |
Additional arguments. |
x |
The |
model |
The |
Because the lcMethod arguments may be unevaluated, evaluation functions such as [[ accept an envir argument.
A default environment can be assigned or obtained from a lcMethod object using the environment() function.
The updated lcMethod object.
An lcModel object.
The extracted label, as character.
A character vector of argument names.
An environment that will be passed to fit().
A data.frame with the post-processed data.
The updated lcModel object.
Either TRUE if all validation checks passed,
or a character containing a description of the failed validation checks.
argumentsA list representing the arguments of the lcMethod object. Arguments are not evaluated upon creation of the method object. Instead, arguments are stored similar to a call object. Do not modify or access.
sourceCallsA list of calls for tracking the original call after substitution. Used for printing objects which require too many characters (e.g. ,function definitions, matrices).
Other lcMethod implementations:
lcMethodAkmedoids,
lcMethodCrimCV,
lcMethodCustom,
lcMethodDtwclust,
lcMethodFeature,
lcMethodFunFEM,
lcMethodGCKM,
lcMethodKML,
lcMethodLMKM,
lcMethodLcmmGBTM,
lcMethodLcmmGMM,
lcMethodLongclust,
lcMethodMclustLLPA,
lcMethodMixAK_GLMM,
lcMethodMixtoolsGMM,
lcMethodMixtoolsNPRM,
lcMethodRandom,
lcMethodStratify
Other lcMethod functions:
[[,lcMethod-method,
as.data.frame.lcMethods(),
as.data.frame.lcMethod(),
as.lcMethods(),
as.list.lcMethod(),
evaluate.lcMethod(),
formula.lcMethod(),
update.lcMethod()
getName(lcMethodKML("Y")) # "longitudinal k-means"
getShortName(lcMethodKML("Y")) # "KML"
m = lcMethodKML("Y")
names(m)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.