build.R {sklarsomega}R Documentation

Build a Sklar's Omega correlation matrix.

Description

Build a Sklar's Omega correlation matrix.

Usage

build.R(data)

Arguments

data

a matrix of scores. Each row corresponds to a unit, each column a coder.

Details

This function accepts a data matrix and uses its column names to build the appropriate block-diagonal correlation matrix. If gold-standard scores are included, they should be in the first column of the matrix, and that column should be named 'g'. For a given coder, the column name should begin with 'c', and then the coder number and score number should follow, separated by '.' (so that multi-digit numbers can be accommodated). For example, 'c.12.2' denotes the second score for coder 12.

Note that this function is called by sklars.omega and so is not a user-level function, per se. We expose the function so that interested users can more easily carry out simulation studies.

Value

build.R returns a list comprising two elements.

R

the correlation matrix.

onames

a character vector that contains names for the parameters of the correlation matrix.

See Also

sklars.omega, check.colnames


[Package sklarsomega version 3.0-2 Index]