CircleArcEquate: Circle-arc based on two vectors of data assuming from...

View source: R/CircleArc.R

CircleArcEquateR Documentation

Circle-arc based on two vectors of data assuming from equivalent groups

Description

Calculates means an applies .

Usage

CircleArcEquate(xscores, yscores, maxX, maxY, minX = 0, minY = 0)

Arguments

xscores

A vector of scores from individual candidates on form X.

yscores

A vector of scores from individual candidates on form Y.

maxX

Maximum score on form X (or upper point for circle arc method).

maxY

Maximum score on form Y (or upper point for circle arc method).

minX

Minimum score on form X (or lower point for circle arc method). Default of zero.

minY

Minimum score on form Y (or lower point for circle arc method). Default of zero.

Value

The function returns a list with the following elements:

yxFunc

A function that translates any vector of scores on form X into equivalent scores on form Y.

EqTable

A data frame showing the equivalent score on form Y for every integer score between minX and maxxX on form X.

Examples

x=round(runif(500,0,50))
y=round(pmin(50,pmax(0,rnorm(500,35,10))))
circ_eq=CircleArcEquate(x,y,50,50)
plot(circ_eq$EqTable$x,circ_eq$EqTable$equiyx,type='l')
circ_eq$EqTable


CambridgeAssessmentResearch/KernEqWPS documentation built on Feb. 23, 2024, 9:34 p.m.