df_contrasts6: Simulated data with response times with a 2-level between...

Description Usage Format Details References

Description

In the data, the influence of IQ on response time differs between conditions F1 and F2.

Usage

1

Format

A data frame with 60 rows and 4 variables:

F

Between subject factor with factor two levels (F1, F2)

RT

Dependent variable response time (RT)

IQ

Between-subject covariate (IQ)

id

Subject index

Details

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)

References

\insertAllCited
vasishth/lingpsych documentation built on Dec. 23, 2021, 2:11 p.m.