Learn R Programming

TextForecast (version 0.1.3)

optimal_number_factors: optimal number of factors function

Description

optimal number of factors function

Usage

optimal_number_factors(x, kmax)

Arguments

x

a matrix x.

kmax

the maximum number of factors

Value

a list with the optimal factors.

Examples

Run this code
# NOT RUN {
data("optimal_x")
optimal_factor <- optimal_number_factors(x=optimal_x,kmax=8)
# }

Run the code above in your browser using DataLab