pattern {DAKS} | R Documentation |
pattern
computes the absolute frequencies of the (occurring)
response patterns, and optionally, the absolute frequencies of a
collection of specified knowledge states in a dataset.
pattern(dataset, n = 5, P = NULL)
dataset |
a required data frame or matrix consisting of binary, 1 or 0, numeric data. |
n |
an optional numeric, with default n = 5 , giving the
n highest frequencies and their corresponding response
patterns to be returned. |
P |
an optional matrix of ones and zeros giving the knowledge
states to be used. The default P = NULL corresponds to no
knowledge states being specified. |
This function can be used to retrieve information about how often
response patterns and knowledge states occur in a dataset. The
argument n
refers to response patterns, not knowledge states,
and in particular is independent of specifications of the argument
P
. If pattern
is called without specifying n
explicitly, the response patterns with the five highest frequencies
are returned (along with their frequencies). If n is
specified, the response patterns with the n highest
frequencies are returned (along with their frequencies). If n
is larger than the number of different response patterns in the
dataset, n is set the number of different response patterns.
The knowledge states are represented as 1/0-patterns and
are the rows of the argument matrix P
. The matrix P
must contain only ones and zeros, which encode whether or not an
item belongs to a knowledge state, respectively. If P
is not
specified, pattern
only returns information about response
patterns (as described previously).
The data must contain only ones and zeros, which encode solving or failing to solve an item, respectively.
If the arguments dataset
, n
, and P
are of
required types, pattern
returns a named list consisting of
the following two components:
response.patterns |
an array giving the response patterns (with
the n highest frequencies) and their absolute frequencies in
dataset . |
states |
a matrix of the knowledge states and their absolute
frequencies in dataset . Each row represents a knowledge
state, the last column gives the frequencies of the states. If
P = NULL , the component states is NULL . |
n |
a value specifying the number of states to print. |
Anatol Sargin anatol.sargin@math.uni-augsburg.de, Ali Uenlue ali.uenlue@math.uni-augsburg.de
Sargin, A. and Uenlue, A. (2009) Inductive item tree analysis: Corrections, improvements, and comparisons. Manuscript under revision. http://www.math.uni-augsburg.de/~uenlueal/
Sargin, A. and Uenlue, A. (2009) DAKS: An R package for data analysis in knowledge space theory. Manuscript submitted for publication. http://www.math.uni-augsburg.de/~uenlueal/
ob_counter
for computation of numbers of
counterexamples; simu
for data simulation tool;
iita
, the interface that provides the three inductive
item tree analysis methods under one umbrella. See also
DAKS-package
for general information about this
package.
pattern(pisa, n = 3) pattern(pisa)