This function calculate degree of freedom of NEMoE object.

calcdf(NEMoE_obj, output = "all")

Arguments

NEMoE_obj

A NEMoE object with fitted result.

output

whether degree of freedom with combined components or compute within each component.

Value

a list of degree of freedom in gating network and experts network.

Examples

data(NEMoE_example) calcdf(NEMoE_example)
#> $df_gamma #> [1] 9 #> #> $df_beta #> [,1] #> [1,] 4 #> [2,] 13 #> [3,] 16 #> [4,] 14 #> [5,] 42 #>