lcMethod-estimation | R Documentation |
lcMethod
) estimation procedureEach longitudinal cluster method represented by a lcMethod class implements a series of standardized steps that produce the estimated method as its output.
These steps, as part of the estimation procedure, are executed by the latrend()
function and other functions prefixed by "latrend" (e.g., latrendRep()
, latrendBoot()
, latrendCV()
).
The steps for estimating a lcMethod
object are defined and executed as follows:
compose()
: Evaluate and finalize the method argument values.
validate()
: Check the validity of the method argument values in relation to the dataset.
prepareData()
: Process the training data for fitting.
preFit()
: Prepare environment for estimation, independent of training data.
fit()
: Estimate the specified method on the training data, outputting an object inheriting from lcModel
.
postFit()
: Post-process the outputted lcModel
object.
The result of the fitting procedure is an lcModel object that inherits from the lcModel
class.
lcMethod latrend
data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, data = latrendData)
summary(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.