Thanks, Phil! I can understand that a little how to work that.
Hence, I want to know the add another cluster group like treatment, Yes or No in fixed effect term and cross-classified cluster. Can I consider that? I don't have an idea to execute that. Just add new group like this? Too sorry for my poor understanding the LLTM and EMEIRT terminology; I do not learn enough these model in the industrial psychology doctoral coursework. Korean psychometricians do not know well them who I can available to ask.
sigma_cluster_prime = .8
cluster_prime = 200
random_intercept_prime = rnorm(cluster_prime, 0, sigma_cluster_prime)
Theta = numeric()
for (i in 1:cluster) {
for(j in 1:cluster_prime) {
Theta <- c(Theta, rnorm(N/cluster, 0, 1) + random_intercept[i])
Theta <- c(Theta, rnorm(N/cluster_prime, 0, 1) + random_intercept_prime[j])
Theta <- c(Theta, runif(N))
}
}
Best,
Seongho
2017년 11월 7일 화요일 오전 3시 38분 34초 UTC+9, Phil Chalmers 님의 말: