Simulating Data in R

R packages

simstudy

https://cran.r-project.org/web/packages/simstudy/vignettes/simstudy.html

psych::sim.multilevel

http://personality-project.org/r/html/sim.multilevel.html

 

Re-creating data sets

https://stats.stackexchange.com/questions/30303/how-to-simulate-data-that-satisfy-specific-constraints-such-as-having-specific-m

 

A complex but thorough simulation example from idre.ucla

http://stats.idre.ucla.edu/r/codefragments/mesimulation/

 

Mark-recapture designs for wildlife studies

https://sites.google.com/site/wild8390/software/simulate

 

Multilevel Simulation with specified ICC

https://psychometroscar.wordpress.com/simulate-a-2-level-multilevelhlmlinear-mixed-model/

 

Other

http://clayford.github.io/dwir/dwr_12_generating_data.html

https://web.stanford.edu/class/bios221/labs/simulation/Lab_3_simulation.html

http://stackoverflow.com/questions/23256694/how-can-i-efficiently-generate-a-dataframe-of-simulated-values

 

Click to access sim.pdf

 

http://www.quantumforest.com/2011/10/simulating-data-following-a-given-covariance-structure/

Leave a comment