Skip to content
Prev 120 / 885 Next

Creating data

On Wed, Mar 25, 2009 at 1:46 PM, G. Jay Kerns <gkerns at ysu.edu> wrote:
Slightly off-topic but you may want to look at the 'exams' package by
Achim Zeileis and Bettina Gruen

http://cran.r-project.org/web/packages/exams/

The vignette for the package gives examples of incorporating the data
set generating process into the document that will generate the exam
questions.  Even if you do not choose to use LaTeX to generate the
exam it is still helpful to encapsulate the data generation process in
something beyond an R script with some comments.  I know for myself
that even with comments in a script I soon forget exactly what is
being simulated in a script with a name like 'simulate.R'.