# sample.R # Analysis of Experiment 1, Expra 2, WS 2020/2021 # # Input: expra2_exp1.txt # Output: exp1_meanRT.pdf # # Contents: (1) Data preparation # (2) Descriptive statistics # (3) Hypothesis tests # (4) Simulations # # Last mod: 2025-02-19, Florian Wickelmaier library(lattice) # add-on packages (optional) library(nlme) # setwd("U:/teaching/cam/2020ws/02-Rscripts") # working directory ## (1) Data preparation ------------------------------------------------------ ## Read raw data x <- rnorm(10) # draw random numbers mx <- mean(x) ## (2) Descriptive statistics ------------------------------------------------ ## (3) Hypothesis testing ---------------------------------------------------- ## (4) Simulations -----------------------------------------------------------