two.level.comparison.items: Create a 'compitem' object.

View source: R/two.level.comparison.items.R

two.level.comparison.itemsR Documentation

Create a compitem object.

Description

This function creates a compitem object from a data.frame or matrix of observations from an item to be deemed a control, or a recovered, item.

Usage

two.level.comparison.items(data, data.columns)

Arguments

data

a matrix or data.frame of observed properties from either the control item, or the recovered item

data.columns

vector of integers giving which columns in data are the observations of the properties

Value

an object of class compitem

Note

This function is deprecated and will eventually be replaced by makeCompItem().

Examples

# load Greg Zadora's glass data
data(glass)

# calculate a compitem object representing the control item
control = two.level.comparison.items(glass[1:6,], c(7,8,9))

comparison documentation built on Aug. 25, 2023, 5:14 p.m.