Skip to content
Prev 69640 / 398525 Next

Using R to illustrate the Central Limit Theorem

"Kevin E. Thorpe" <kevin.thorpe at utoronto.ca> writes:
Not really. You might have used u <- runif(nn,-1,1) and
sign(u)*abs(u)^(1/3) instead of the ifelse construct (remember that
ifelse generally evaluates both the 'yes' and 'no' parts and on some
architectures the NaN results may be slow to compute).