I see what you are doing now. But just to confirm it, you are doing the following:
- setting
nto be number of trials / individual, - setting
observedto be the number of successes / individual, - and removing the brackets,
[], aroundabecause theshapeand other arguments make sure to not make them universal variables.
But what I did before also does the same thing, despite the syntax having a few key differences?