-
Notifications
You must be signed in to change notification settings - Fork 1
/
sim_eta_matrix.Rd
59 lines (48 loc) · 1.3 KB
/
sim_eta_matrix.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{sim_eta_matrix}
\alias{sim_eta_matrix}
\title{Generate ideal response \eqn{\eta} Matrix}
\usage{
sim_eta_matrix(K, J, Q)
}
\arguments{
\item{K}{Number of Attribute Levels}
\item{J}{Number of Assessment Items}
\item{Q}{Q Matrix with dimensions \eqn{K \times J}{K x J}.}
}
\value{
A \code{mat} with dimensions \eqn{J \times 2^K}{J x 2^K}.
}
\description{
Creates the ideal response matrix for each trait
}
\examples{
## Simulation Settings ----
# Fixed Number of Assessment Items for Q
J = 18
# Fixed Number of Attributes for Q
K = 3
## Pre-specified configuration ----
# Specify Q
qbj = c(4, 2, 1, 4, 2, 1, 4, 2, 1, 6, 5, 3, 6, 5, 3, 7, 7, 7)
# Fill Q Matrix
Q = matrix(, J, K)
for (j in seq_len(J)) {
Q[j,] = attribute_inv_bijection(K, qbj[j])
}
# Create an eta matrix
ETA = sim_eta_matrix(K, J, Q)
## Random generation of Q matrix with ETA matrix ----
# Construct a random q matrix
Q_sim = sim_q_matrix(J, K)
# Generate the eta matrix
ETA_gen = sim_eta_matrix(K, J, Q_sim)
}
\seealso{
\code{\link[=sim_q_matrix]{sim_q_matrix()}}, \code{\link[=attribute_bijection]{attribute_bijection()}}, and
\code{\link[=attribute_inv_bijection]{attribute_inv_bijection()}}
}
\author{
Steven Andrew Culpepper and James Joseph Balamuta
}