set.seed(42)
out1 <- makeRepeated(
n = 64,
k = 3,
means = c(3.1, 3.5, 3.9),
sds = c(1.0, 1.1, 1.0),
items = 4,
f_stat = 4.87,
structure = "cs",
diagnostics = FALSE
)
head(out1$data)
out1$correlation_matrix
out2 <- makeRepeated(
n = 32, k = 4,
means = c(2.75, 3.5, 4.0, 4.4),
sds = c(0.8, 1.0, 1.2, 1.0),
f_stat = 16,
structure = "ar1",
items = 5,
lowerbound = 1, upperbound = 7,
return_corr_only = FALSE,
diagnostics = TRUE
)
print(out2)
out3 <- makeRepeated(
n = 64, k = 4,
means = c(2.0, 2.25, 2.75, 3.0),
sds = c(0.8, 0.9, 1.0, 0.9),
items = 4,
f_stat = 24,
# structure = "toeplitz",
diagnostics = TRUE
)
str(out3)
Run the code above in your browser using DataLab