Observed tables cannot be computed when data is missing. Therefore, you can optionally omit items with the greatest number of responses missing when conducting the distribution test.
a list containing the model and data. See the details section.
Not used. Forces remaining arguments to be specified by name.
whether to enable the two-tier optimization
When two-tier covariance structure is detected, EAP scores are only reported for primary factors. It is possible to compute EAP scores for specific factors, but it is not clear why this would be useful because they are conditional on the specific factor sum scores. Moveover, the algorithm to compute them efficiently has not been published yet (as of Jun 2014).
A model, or group within a model, is represented as a named list.
list of response model objects
numeric matrix of item parameters
logical matrix of indicating which parameters are free (TRUE) or fixed (FALSE)
numeric vector giving the mean of the latent distribution
numeric matrix giving the covariance of the latent distribution
data.frame containing observed item responses, and optionally, weights and frequencies
factors scores with response patterns in rows
name of the data column containing the numeric row weights (optional)
name of the data column containing the integral row frequencies (optional)
width of the quadrature expressed in Z units
number of quadrature points
minimum number of non-missing items when estimating factor scores
param matrix stores items parameters by column. If a
column has more rows than are required to fully specify a model
then the extra rows are ignored. The order of the items in
spec and order of columns in
param are assumed to
match. All items should have the same number of latent dimensions.
Loadings on latent dimensions are given in the first few rows and
can be named by setting rownames. Item names are assigned by
Currently only a multivariate normal distribution is available,
parameterized by the
cov are not specified then a standard normal distribution is
assumed. The quadrature consists of equally spaced points. For
qpoints=5 would produce points
-2, -1, 0, 1, and 2. The quadrature specification is part of the
group and not passed as extra arguments for the sake of
consistency. As currently implemented, OpenMx uses EAP scores to
estimate latent distribution parameters. By default, the exact same
EAP scores should be produced by EAPscores.
1 2 3 4 5 6 7 8 9 10 11 12
# see Thissen, Pommerich, Billeaud, & Williams (1995, Table 2) spec <- list() spec[1:3] <- list(rpf.grm(outcomes=4)) param <- matrix(c(1.87, .65, 1.97, 3.14, 2.66, .12, 1.57, 2.69, 1.24, .08, 2.03, 4.3), nrow=4) # fix parameterization param <- apply(param, 2, function(p) c(p, p[2:4] * -p)) grp <- list(spec=spec, mean=0, cov=matrix(1,1,1), param=param) sumScoreEAP(grp)
Loading required package: parallel sh: 1: wc: Permission denied sh: 1: cannot create /dev/null: Permission denied p s1 se1 cov1 0 0.3247271904 -0.8845795 0.7028176 0.4939526 1 0.2408731156 -0.1789646 0.6144721 0.3775760 2 0.1828084849 0.3317924 0.5735427 0.3289512 3 0.1228977168 0.7435949 0.5468414 0.2990356 4 0.0692697838 1.1154408 0.5446800 0.2966763 5 0.0350090665 1.4824122 0.5439233 0.2958525 6 0.0159520474 1.8429204 0.5389218 0.2904367 7 0.0062255842 2.2117904 0.5443366 0.2963023 8 0.0019291778 2.6222353 0.5597838 0.3133579 9 0.0003078324 2.9989878 0.5726242 0.3278985
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.