# NOT RUN {
final_index(datasets=list(milk),start="2018-12",end="2020-02",
formula="walsh",aggrret="paasche",aggrsets="none")
# }
# NOT RUN {
## defining two subgroups of milk
# }
# NOT RUN {
g1<-dplyr::filter(milk, milk$description=="full-fat milk UHT")
# }
# NOT RUN {
g2<-dplyr::filter(milk, milk$description=="low-fat milk UHT")
# }
# NOT RUN {
## Final price index calculations (for the whole time interval)
## with aggregating over subgroups g1 and g2 and over outlets
## Please note that the default value (formula) for aggregating over outlets is "tornqvist""
# }
# NOT RUN {
final_index(datasets=list(g1,g2), start="2018-12",
end="2019-12",formula="fisher",aggrsets="geometric",interval=TRUE)
# }
Run the code above in your browser using DataLab