R -- Introduction & Programming  Codes

  1. R functions (rcnorm and rcnormi (i=1,2,3,4,5)) to generate contaminated normal random variates and cpu.time (function to compute CPU time of evaluating an expression) can be found in rcnorm.R.
  2. R functions used to produce probability density plot with shading for selected distributions are in pdfShading.R.
  3. An R function used to simulate coefficients and error in linear regression can be found in lmSimu1.R.
  4. R for Simulation by Examples simu2013mar.R. Also, 2 R functions for confidence intervals: bs.R.

2013-03-15