all.patterns: Create all possible response patterns

View source: R/gamma.R

all.patternsR Documentation

Create all possible response patterns

Description

Create all possible response patterns

Usage

## S3 method for class 'patterns'
all(maxscores = c(), target = NULL)

Arguments

maxscores

vector of max scores

target

target total score

Details

This function quickly gets very resource intensive. On a 8 core, 16 GB computer, 25 items are too heavy.

Value

Returns a matrix of all possible patterns. If target is set, only patterns with at total score of target is returned

Author(s)

Jeppe Bundsgaard & Svend Kreiner

References

Jeppe Bundsgaard & Svend Kreiner (2019). Undersøgelse af De Nationale Tests måleegenskaber. 2nd Ed. Copenhagen: DPU, Aarhus University.

Examples

maxscores<-c(1,2,3,1,2,3)
all.patterns(maxscores,target=5)

jeppebundsgaard/RDigram documentation built on Oct. 29, 2023, 7:15 p.m.