# The US mortality data 1959-2020 for two populations and three states
# (New York, California, Illinois)
# Compute the functional Anova decomposition fitted by means.
FANOVA_means <- FANOVA(data_pop1 = t(all_hmd_male_data),
data_pop2 = t(all_hmd_female_data),
year = 1959:2020, age = 0:100,
n_prefectures = 3, n_populations = 2)
##1. The funcional grand effect
FGE = FANOVA_means$FGE_mean
##2. The funcional row effect
FRE = FANOVA_means$FRE_mean
##3. The funcional column effect
FCE = FANOVA_means$FCE_mean
Run the code above in your browser using DataLab