Simulation in R
Back to Teaching

Simulation Studies Using R

R is a unique statistical application such that it is an almost perfect combination between programming language and statistical packages, which are required skills for Monte Carlo simulation. The class covered all steps in a Monte Carlo simulation including (a) specifying design conditions, (b) generating data from a desired model, (c) analyzing data, (d) selecting target statistics from the results, and (e) summarizing the statistics across design conditions for publication. Furthermore, the seminar included debugging techniques, running R in high-performance computers, and communication with other statistical packages.

Note

The articles written in English have blue links or blue table cells. The articles written in Thai have red links or red table cells.


Summer 2015 (R SIM; Graduate, TTU)




Lectures Videos Materials
Getting Started
Getting and Organizing Outputs
The if Statement and the apply Function
Communication with External Programs Using R
The Apply Family in R
Data Generation and Debugging
Quick Start of Using High Performance Computing (HPC)*
Build R package to Run Simulation in HPC*
Expectation and Variance
Optimization
Plotting

*I taught this class using HPC in Texas Tech University. Running in other HPCs could be slightly different.


Assignments Materials
Assignment 1
Assignment 2
Assignment 3
Assignment 4