added type="marginal" to predict.medrc