TransfData: Transposing data to use the functions in AGREL.

Description Usage Arguments Value Examples

Description

Function to transpose dataframes if they are not yet in the desired format for the functions.

Usage

1
TransfData(id, var, rater, data)

Arguments

id

Variable indicating the ID of the rated observations.

var

Variable indicating the ratings.

rater

Variable indicating the raters.

data

Dataframe

Value

Returns a transposed dataframe that can be used for the functions in this package.

Examples

1
2
3
4
5
# Sample data
Df = cbind.data.frame(ID = sort(rep(1:10, 4)), var = sample(letters[1:2], 40, TRUE), raters = rep(paste("rater",1:4), 10))
NewDf = TransfData(ID, var, raters, Df)

FleissK(NewDf)

BavoDC/AGREL documentation built on May 6, 2019, 7:22 a.m.