R tools for the PAMDs