Description Usage Format Details References
In the data, the influence of IQ on response time 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(200,100)
mu2 <- c(220,100)
sd1 <- 40
sd2 <- 15
r1 <- 0.0
r2 <- -0.6
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)
d6a <- mvrnorm(n=N, mu=mu1, Sigma=sigma1, empirical=TRUE)
d6b <- mvrnorm(n=N, mu=mu2, Sigma=sigma2, empirical=TRUE)
df_contrasts6 <- rbind(data.frame(F="F1", d6a), data.frame(F="F2", d6b))
names(df_contrasts6)[2:3] <- c("RT","IQ")
df_contrasts6$id <- 1:nrow(df_contrasts6)
df_contrasts6$F <- factor(df_contrasts6$F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.