# R

## The Chaos GameR

The Chaos Game In this excellent Numberphile video Ben Sparks demonstrates how to generate a fractal structure (the Sierpinsky Triangle) by putting constraints (or rules) on a random process. The random process in this case is rolling a die, or, equivalently, drawing a random number from $$\mathcal{U}(1,6)$$.

## Testing assumptions of the data-generating process underlying Experience Sampling

Anomalous diffusion: Individual particle tracking vs. Ensemble averages Particles are individuals too! A timeseries of daily mood: down Test for level and trend stationarity Test for AR, ARCH or an optimal ARIMA process Structural decomposition Conclusions NEXT: Dynamics in state space Anomalous diffusion: Individual particle tracking vs. Ensemble averages A recent article by Bos et al. (2017)1 in which the authors compared network measures derived from cross-sectional (between-individual) and within-individual data sparked some discussion on facebook.

## R Effect Size CI tutorial

This is a demonstration of using R in the context of hypothesis testing by means of Effect Size Confidence Intervals.