Get the lcMethod specification that was used for fitting the given object.

getLcMethod(object, ...)

# S4 method for class 'lcModel'
getLcMethod(object)

Arguments

object

The model.

...

Not used.

Value

An lcMethod object.

Examples

method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
getLcMethod(model)
#> lcMethodRandom specifying "random"
#>  alpha:          10
#>  center:         function (x) {    mean(x, na.rm = TRUE)}
#>  time:           "Time"
#>  id:             "Id"
#>  nClusters:      2
#>  name:           "random"
#>  response:       "Y"