# R apply with a vector parameter

I am trying to apply the ppoibin (poisson binomial probabilities) function from the poibin package to each row in a dataframe. This function takes two parameters: an integer and a vector of probabilities. My data takes the form: p <- matrix(c(0.046, 0.046, 0.323, 0.122, 0.122, 0.490, 0.122, 0.122, 0.490), 3 , 3, byrow = TRUE)… Read More R apply with a vector parameter