4. pmoments- The pmoments package implements both analytical and sample estimation of partial moments (upper/lower). In addition it provides for portfolio optimization using symmetric partial co-moment expectations in a quadratic context.