[R] Binomial simulation
beetle2
samandbrendan at aapt.net.au
Sun Apr 19 00:17:29 CEST 2009
Sorry guys one quick question
I've graphed the histogram with
hist(rbinom(n = 1000, size = 10, prob = 0.25))
How to I sum the individual values 0 to 12?
regards
Brendan
beetle2 wrote:
>
> Hi Guy's
> I was wondering if someone could point me in the right direction.
>
> dbinom(10,1,0.25)
>
> I am using dbinom(10,1,0.25) to calculate the probabilty of 10 judges
> choosing a certain brand x times.
>
> I was wondering how I would go about simulating 1000 trials of each x
> value ?
>
> regards
> Brendan
>
>
--
View this message in context: http://www.nabble.com/Binomial-simulation-tp23106347p23117871.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list