|
67 | 67 | #' \item \code{"classify"} for the posteriori classification probabilities (only |
68 | 68 | #' applicable when the input model was of class \code{MixtureClass}) |
69 | 69 | #' } |
| 70 | +#' @param expected.info logical; instead of using the observed information when |
| 71 | +#' \code{method = 'ML'} or \code{method = 'WLE'} use the expected information computed via |
| 72 | +#' \code{\link{testinfo}}? Only currently supported for unidimensional models |
70 | 73 | #' @param quadpts number of quadrature to use per dimension. If not specified, a suitable |
71 | 74 | #' one will be created which decreases as the number of dimensions increases |
72 | 75 | #' (and therefore for estimates such as EAP, will be less accurate). This is determined from |
@@ -280,9 +283,13 @@ fscores <- function(object, method = "EAP", full.scores = TRUE, rotate = 'oblimi |
280 | 283 | return.acov = FALSE, mean = NULL, cov = NULL, covdata = NULL, |
281 | 284 | verbose = TRUE, full.scores.SE = FALSE, theta_lim = c(-6,6), MI = 0, |
282 | 285 | use_dentype_estimate=FALSE, QMC = FALSE, custom_den = NULL, |
283 | | - custom_theta = NULL, min_expected = 1, max_theta = 20, start = NULL, ...) |
| 286 | + custom_theta = NULL, expected.info=FALSE, |
| 287 | + min_expected = 1, max_theta = 20, start = NULL, ...) |
284 | 288 | { |
285 | 289 | if(method == 'WML') method <- 'WLE' |
| 290 | + if(expected.info) |
| 291 | + stopifnot("expected.info only currently supported unidimensional models"= |
| 292 | + extract.mirt(object, 'nfact') == 1) |
286 | 293 | if(!is(object, 'DiscreteClass')){ |
287 | 294 | if(QMC && is.null(quadpts)) quadpts <- 5000 |
288 | 295 | if(is.null(quadpts)) |
@@ -333,7 +340,7 @@ fscores <- function(object, method = "EAP", full.scores = TRUE, rotate = 'oblimi |
333 | 340 | plausible.draws = plausible.draws, custom_den=custom_den, |
334 | 341 | custom_theta=custom_theta, Target=Target, min_expected=min_expected, |
335 | 342 | plausible.type=plausible.type, max_theta=max_theta, start=start, |
336 | | - use_dentype_estimate=use_dentype_estimate, |
| 343 | + use_dentype_estimate=use_dentype_estimate, expected.info=expected.info, |
337 | 344 | append_response.pattern=append_response.pattern, ...) |
338 | 345 | ret |
339 | 346 | } |
0 commit comments