Skip to content

Commit

Permalink
Few typos in the documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzoltak committed Jun 19, 2024
1 parent 6d81506 commit 1649c02
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ Suggests:
MplusAutomation
Encoding: UTF-8
Language: en-US
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Config/testthat/edition: 3
3 changes: 2 additions & 1 deletion R/expand_responses.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ expand_responses <- function(responses, scoringMatrix) {
!duplicated(rownames(scoringMatrix)),
!is.null(colnames(scoringMatrix)),
!duplicated(colnames(scoringMatrix)),
all(setdiff(unique(unlist(sapply(responses, unique))), NA) %in%
"All values occuring in the 'response' argument must match some name of the scoring matrix." =
all(setdiff(unique(unlist(sapply(responses, unique))), NA) %in%
rownames(scoringMatrix)))

responses <- as.matrix(responses)
Expand Down
2 changes: 1 addition & 1 deletion R/generate_item_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ generate_slopes <- function(nItems, scoringMatrix, ..., FUN = identity,
#' by a set of \emph{intercept} parameters describing relative frequency of
#' specific categories of the response scale. However, it is convenient to
#' define model parameters in another parameterisation, in which item
#' \emph{thresholds} describe {difficulty} of switching between consecutive
#' \emph{thresholds} describe \emph{difficulty} of switching between consecutive
#' categories of the response scale, and only then transform these
#' \emph{thresholds} to \emph{intercepts}. Function follows this approach and:
#' 1) first generates general \emph{difficulties} of the whole items, then
Expand Down
2 changes: 1 addition & 1 deletion R/make_item.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' traits scoring patterns that will be returned by functions provided with
#' arguments \code{scoringOnPreviousResponses} or \code{editResponse})
#' @param intercepts a numeric vector of intercept parameters (must be shorter
#' of one than number of rows in the \\code{scoringMatrix} or the same length
#' of one than number of rows in the \code{scoringMatrix} or the same length
#' but with the first element being 0)
#' @param mode the way the item should be answered - see
#' \code{\link{generate_item_responses_sqn}} for "irtree" and
Expand Down
2 changes: 1 addition & 1 deletion man/generate_intercepts.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/make_item.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1649c02

Please sign in to comment.