df_contrasts5: 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 is exactly the same in both conditions F1 and F2. However, the mean response time and mean IQ 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(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)

References

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