R code for Sequential INFormation Analysis