replicate(1000, sum(rnorm(50)^2-rchisq(50, 3)))

Or you know, many other things...

Michael

On Tuesday, December 4, 2012, Adel ESSAFI wrote:

> Hello,
>
> How can I make a monte carlo simulation on R?
>
> Regards
> Adel
>
>
> --
> PhD candidate in Computer Science
> Address
> 3 avenue lamine, cité ezzahra, Sousse 4000
> Tunisia
> tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
> fax: +216 71 391 166
>
>         [[alternative HTML version deleted]]
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to