Description Usage Format Details References
In the data, the influence of IQ on response time is exactly the same in both conditions F1 and F2. However, the mean response time and mean IQ differs between conditions F1 and F2.
1 |
A data frame with 60 rows and 4 variables:
Between subject factor with factor two levels (F1, F2)
Dependent variable response time (RT)
Between-subject covariate (IQ)
Subject index
The data were simulated using the following R-code:
set.seed(123)
N <- 30
mu1 <- c(225, 85)
mu2 <- c(200,115)
sd1 <- 40
sd2 <- 15
r1 <- r2 <- -0.4
sigma1 <- matrix(c(sd1^2,r1*sd1*sd2,r1*sd1*sd2,sd2^2),nrow=2)
sigma2 <- matrix(c(sd1^2,r2*sd1*sd2,r2*sd1*sd2,sd2^2),nrow=2)
d5a <- mvrnorm(n=N, mu=mu1, Sigma=sigma1, empirical=TRUE)
d5b <- mvrnorm(n=N, mu=mu2, Sigma=sigma2, empirical=TRUE)
df_contrasts5 <- rbind(data.frame(F="F1", d5a), data.frame(F="F2", d5b))
names(df_contrasts5)[2:3] <- c("RT","IQ")
df_contrasts5$id <- 1:nrow(df_contrasts5)
df_contrasts5$F <- factor(df_contrasts5$F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.