baserate: Calculate Baserate

Description Usage Arguments Details Value See Also Examples

View source: R/baserate.R

Description

This function calculates the baserate of the first rater, second rater, and the average of both the raters.

Usage

1

Arguments

data

The testSet or contingencyTable for which the baserate is calculatede

Details

A baserate is the percentage, as a decimal, that a positive code appears in data (either a codeSet or contingencyTable) for a given rater. It is assumed that the first rater is more experienced and thus provides a better estimation of the actual baserate for a given code, so the first rater's baserate is often used as if it is the actual baserate. If the raters are assumed to have the same experience level, the average baserate may give a better estimation. If the second rater is more experienced, the second rater's baserate may give a better estimation. Functions assume that the first rater is the more experienced rater and thus uses the first rater's baserate as the overall baserate estimation.

Value

A list of the format:

firstBaserate

The percentage of the data for which a positive code, or a 1, appears in the first rater

secondBaserate

The percentage of the data for which a positive code, or a 1, appears in the second rater

averageBaserate

The average of the firstBaserate and secondBaserate.

See Also

baserateSet and baserateCT

Examples

1
2
3
4
5
#Given a code set
baserate(data = codeSet)

#Given a contingency Table
baserate(data = contingencyTable)

rhoR documentation built on Dec. 6, 2019, 5:10 p.m.