Revision d4cb3e7e9238e92df8bca607c6f7afd82c8efb52 authored by Daniel Luedecke on 14 August 2014, 18:06:29 UTC, committed by cran-robot on 14 August 2014, 18:06:29 UTC
1 parent 1338a2d
Raw File
sju.mic.Rd
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{sju.mic}
\alias{sju.mic}
\title{Computes a mean inter-item-correlation.}
\usage{
sju.mic(data, corMethod = "pearson")
}
\arguments{
\item{data}{A correlation object, built with the R-\code{\link{cor}}-function, or a data frame
which correlations should be calculated.}

\item{corMethod}{Indicates the correlation computation method. May be one of
\code{"spearman"} (default), \code{"pearson"} or \code{"kendall"}.}
}
\value{
The value of the computed mean inter-item-correlation.
}
\description{
This function calculates a mean inter-item-correlation, i.e.
               a correlation matrix of \code{data} will be computed (unless
               \code{data} is already a \code{\link{cor}}-object) and the mean
               of all added item's correlation values is returned.
               Requires either a data frame or a computed \code{\link{cor}}-object.
}
\examples{
# -------------------------------
# Data from the EUROFAMCARE sample dataset
# -------------------------------
data(efc)
# recveive first item of COPE-index scale
start <- which(colnames(efc)=="c82cop1")
# recveive last item of COPE-index scale
end <- which(colnames(efc)=="c90cop9")
# create data frame with COPE-index scale
df <- as.data.frame(efc[,c(start:end)])

sju.mic(df)
}
\seealso{
\code{\link{sju.cronbach}} \cr
         \code{\link{sjt.itemanalysis}} \cr
         \code{\link{sju.reliability}} \cr
         \code{\link{sjp.pca}} \cr
         \code{\link{sjt.pca}}
}

back to top