Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor bug: Default method in item_intercor() is 'pearson', not 'spearman' #610

Merged
merged 2 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions R/item_intercor.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,24 @@
#' @param x A matrix as returned by the `cor()`-function,
#' or a data frame with items (e.g. from a test or questionnaire).
#' @param method Correlation computation method. May be one of
#' `"spearman"` (default), `"pearson"` or `"kendall"`.
#' `"pearson"` (default), `"spearman"` or `"kendall"`.
#' You may use initial letter only.
#'
#' @return The mean inter-item-correlation value for `x`.
#'
#' @details This function calculates a mean inter-item-correlation, i.e.
#' a correlation matrix of `x` will be computed (unless
#' `x` is already a matrix as returned by the `cor()`-function)
#' and the mean of the sum of all item's correlation values is returned.
#' Requires either a data frame or a computed `cor()`-object.
#' \cr \cr
#' \dQuote{Ideally, the average inter-item correlation for a set of
#' items should be between .20 and .40, suggesting that while the
#' items are reasonably homogeneous, they do contain sufficiently
#' unique variance so as to not be isomorphic with each other.
#' When values are lower than .20, then the items may not be
#' representative of the same content domain. If values are higher than
#' .40, the items may be only capturing a small bandwidth of the construct.}
#' \cite{(Piedmont 2014)}
#' @details This function calculates a mean inter-item-correlation, i.e. a
#' correlation matrix of `x` will be computed (unless `x` is already a matrix
#' as returned by the `cor()` function) and the mean of the sum of all items'
#' correlation values is returned. Requires either a data frame or a computed
#' `cor()` object.
#'
#' "Ideally, the average inter-item correlation for a set of items should be
#' between 0.20 and 0.40, suggesting that while the items are reasonably
#' homogeneous, they do contain sufficiently unique variance so as to not be
#' isomorphic with each other. When values are lower than 0.20, then the items
#' may not be representative of the same content domain. If values are higher
#' than 0.40, the items may be only capturing a small bandwidth of the
#' construct." _(Piedmont 2014)_
#'
#' @references
#' Piedmont RL. 2014. Inter-item Correlations. In: Michalos AC (eds)
Expand Down
29 changes: 14 additions & 15 deletions man/item_intercor.Rd

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

Loading