print.gom_ml: Print for 'gom_ml' objects

View source: R/print.gom_ml.R

print.gom_mlR Documentation

Print for gom_ml objects

Description

Print method for an objects of class gom_ml.

Usage

## S3 method for class 'gom_ml'
print(x, k = NULL, ...)

Arguments

x

An object with class gom_ml.

k

Number indicating the pure type result to be printed.

...

Further arguments passed to or from other methods.

Details

Prints the descriptive table inside the gom_ml object along with the likelihood and AIC for the desired pure type set. If k is NULL (default), it chooses the model with the smallest AIC.

Value

No return value.

Examples


data <- data.frame(x1 = round(stats::runif(n = 50, 1, 2), 0),
                   x2 = round(stats::runif(n = 50, 1, 2), 0),
                   x3 = round(stats::runif(n = 50, 1, 2), 0),
                   Id = 1:50)

model <- gom::gom_ml(data.object = data, case.id = "Id", initial.lambda = "random", MC_iter = 150)

print(model)


epopea/gom documentation built on March 1, 2023, 1:54 a.m.