Description Usage Arguments Value Author(s) See Also Examples
This function accepts a concise data frame containing the ordinal responses from an R&R study and expands it into the necessary multinomial counts, so it can be an input to function ordinalRR() for Bayesian data analysis.
1 | preprocess(x, J=3, K=2, H=4)
|
x |
‘data.frame’ containing J*K columns and entries from the H-point ordinal scale 1:H. The required format is a row for each part and blocks of K adjacent columns for the repetitions of each of J raters, e.g., rater 1's columns are the first K and rater J's columns are the last K. |
J |
‘positive integer’ defining the number of raters. |
K |
‘positive integer’ defining the number of repetitions per rater. |
H |
‘positive integer’ defining the H-point ordinal scale on {1,...,H}. |
I |
‘positive integer’ number of parts. |
J |
‘positive integer’ number of raters. |
K |
‘positive integer’ number of repetitions per rater. |
H |
‘positive integer’ length of the H-point ordinal scale on {1,...,H}. |
x |
‘data.frame’ containing J*K columns and entries from the H-point ordinal scale 1:H. Each part is a row, and there are blocks of K adjacent columns for the repetitions of each of J raters, e.g., rater 1's columns are the first K and rater J's columns are the last K. |
R |
‘array’ x is expanded into a 3-dimensional array (i.e., part 1:I, operator 1:J, ordinal value 1:H) with multinomial counts. |
preprocess |
‘Boolean’ will be TRUE if the data are ready for input into function ordinaRR() for Bayesian analysis with JAGS. |
Ken Ryan
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.