so I used sum(dbinom) to calculate the p(x<5)
but I am getting 5 different values instead of the sum adding all the prob together to get one answer ,What is the error?
- This forum is not the most appropriate one for general R questions like this one. You might have more luck with such questions on the R for Data Science Slack or the RStudio community forum for instance.
- In general it’s not good practice to post screenshots of code as it’s not accessible for screen-reader users and as one cannot copy-paste code from there.
- It’d be easier for folks to help if your example was fully reproducible. In particular, one would also need the code creating
n
andp
.
Further resources about getting help
- rOpenSci community call " How to Ask Questions so they get Answered! Possibly by Yourself!"
- Reprex do’s and don’ts
- Where to get help with your R question
Good luck with your exam & further learning!
1 Like