calc.numcats: Number of categories used in a free sort

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Returns the number of categories used by each participant in a free sorting task.

Usage

1

Arguments

edta

A data frame that includes the following columns: SjNo, CategoryNo, described below.

Details

Dataset lawson provides an example of the format expected by the calc.numcats function. Only the following columns are used, other columns will be ignored:

SjNo - integer; must be different for each participant.

CategoryNo - integer. Each group that participant produced must have a unique number. Other than that, the numbers are arbitrary.

Value

A vector of integers. Each number is the number of categories produced by one participant.

Note

The primary purpose of this function is to calculate the numcat argument of function phi.intra.chance. For this reason, only numbers of categories are returned, not the associated subject numbers.

Author(s)

Andy J. Wills (andy@willslab.co.uk)

See Also

phi.intra.chance

Examples

1
2
3
  data(lawson)
  edta <- lawson[lawson$ExptGroup == 2,]
  calc.numcats(edta)

freesortphi documentation built on May 2, 2019, 5:54 p.m.