Learn R Programming

msgl (version 2.0.125.0)

nmod.msgl: Returns the number of models in a msgl object

Description

Returns the number of models in a msgl object

Usage

## S3 method for class 'msgl':
nmod(object, ...)

Arguments

object
a msgl object
...
not used

Value

  • the number of models in object

Examples

Run this code
data(SimData)
x <- sim.data$x
classes <- sim.data$classes
lambda <- msgl.lambda.seq(x, classes, alpha = .5, d = 50, lambda.min = 0.05)
fit <- msgl(x, classes, alpha = .5, lambda = lambda)

# the number of models
nmod(fit)

Run the code above in your browser using DataLab