R/example7.R

#' Example 7 of rating data of three groups and two different rating scales
#' 
#' The combined data matrices of three groups. Because the rating scale is 5
#' points for the groups (1, 1) and (2, 1), while a 7 points rating scale has
#' been used in group (1, 3), function calcallgroups cannot be used for further
#' processing. In stead, calcgroups must be used for each group seperately.\cr
#' The result of readratdatafixed("<example7.rat.txt>"). Each respondent is
#' identified by a schoolid, a group id and a respondent id. The rows contain
#' the assessors, the columns contain the assessed. When rater equals assessed
#' (diagonal), the rating is NA.
#' 
#' 
#' @name example7.rat
#' @docType data
#' @format A data frame with 10 observations of 9 ratings.  \describe{
#' \item{schoolid}{a numeric vector, identifying the second group
#' level} \item{groupid}{a numeric vector, identifying the first group
#' level.} \item{respid}{a numeric vector, identifying the individual.}
#' \item{r01}{ratings received by respondent 1.}
#' \item{r02}{ratings received by respondent 2.}
#' \item{r03}{ratings received by respondent 3.}
#' \item{r04}{ratings received by respondent 4.}
#' \item{r05}{ratings received by respondent 5.}
#' \item{r06}{ratings received by respondent 6.}
#' \item{r07}{ratings received by respondent 7.}
#' \item{r08}{ratings received by respondent 8.}
#' \item{r09}{ratings received by respondent 9.}
#' \item{r10}{ratings received by respondent 10.} }
#' @note Rating data can be entered directly into a SSrat compliant dataframe,
#' using \code{\link{edit}}. Colums needed are: "schoolid", "groupid",
#' "respid", and for <n> raters "r01", "r02".."r<n>". Optionally, a column
#' named "resplabel" can be entered, containing an additional identifier of the
#' raters/assessed. The raters (assessors) are in rows and assessed in columns.
#' For example: \cr mydata=data.frame(schoolid=numeric(0), groupid=numeric(0),
#' respid=numeric(0),\cr r01=numeric(0), r02=numeric(0), r03=numeric(0));
#' mydata=edit(mydata)\cr To allow for the combination of groups with different
#' sizes in a single file, it is important to enumerate the n respondents from
#' 1 to n, respectively use the columnnames r01 to rn for the received ratings.
#' These column names are padded with a zero (r01, r02 etc.) to allow for easy
#' ordening of these columns after a merge.
#' @seealso \code{\link{readratdatafixed}} \code{\link{calcallgroups}}
#' \code{\link{calcgroup}} \code{\link{example1.rat}}
#' \code{\link{example1a.rat}} \code{\link{example2.rat}}
#' \code{\link{example3.rat}} \code{\link{example4.rat}}
#' \code{\link{example5.rat}} \code{\link{example6.rat}}
#' %%\code{\link{example7.rat}} \code{\link{klas2.rat}}
#' @keywords datasets
#' @examples
#' 
#' data(example7.rat)
#' 
NULL

Try the SSrat package in your browser

Any scripts or data that you put into this service are public.

SSrat documentation built on May 2, 2019, 11:26 a.m.