numberFactors: Generic function that returns the number of latent factors

Description Usage Arguments Value Examples

Description

Given an object that describes a dataset or a model involving latent factors, this function returns the number of latent factors.

Usage

1

Arguments

x

an object that describes a dataset or a model involving latent factors

Value

the number of latent factors

Examples

1
2
a <- newmodel(n=5, J=10)
numberFactors(a)

NewWave documentation built on Dec. 26, 2020, 6 p.m.