Skip to content

Hi, Coding problem

3 messages · Ssophia, Uwe Ligges, Greg Snow

#
Ssophia wrote:
^^^^^^^^

PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
#
It looks like what you did was something like:
To get your results (it is easier for us to help if you tell us what you actually did, also setting a seed and telling us that seed helps us reproduce what you did exactly).

The reason that you did not see 9 and 10 is just due to chance, the probabilities for those values is small and it is not surprising that you did not see a couple of unlikely values.  You can either run the sim function more times or tell the computer exactly what values you want counted so it knows to include them, for example:
Hope this helps,