pw.eval: INTERNAL: Evaluate two-way frequencies
Description
Internal function to evaluate whether the two-way (pairwise) frequencies
of items in a matrix are balanced.
Usage
pw.eval(items, shown, drows, des)
Arguments
items
The total number of items shown in a tradeoff exercise.
shown
The number of items shown in each tradeoff task.
drows
The number of rows in the tradeoff design matrix.
des
A matrix consisting of the levels-coded tradeoff design.
Value
tblA matrix of the two-way frequencies (pairs of items) in the tradeoff design.
od.meanThe mean of the off-diagonal elements in tbl.
od.stdvThe standard deviation of the off-diagonal elements in tbl.
Details
Evaluates the two-way (pairwise) frequencies of items in a tradeoff design matrix
and returns those frequencies as well as the off-diagonal mean and standard deviation of the
frequencies.
This function is called internally by tradeoff.des.
Examples
Run this code# NOT RUN {
## INTERNAL USE ONLY
# }
Run the code above in your browser using DataLab