I need to do a Bernoulli test in R.
Lets say i have a set of data specified to insert (10 random samples of 40). From this there are four possible options, and i wish to assign the likelihood of which is chosen based on their means and sd? the randomly generated samples come from a normal distribution with mean of 25 and sd of 4.
I'm just unsure exactly how to code this in R. Thanks for any help.