| Title: | Conversion of Tiered Assessment Responses to Polytomous Scores |
|---|---|
| Description: | Provides tools for converting binary responses from tiered assessment instruments into polytomous item scores based on user-defined scoring rules. The package supports scoring rule parsing, data validation, tiered response conversion, Excel file processing, and a Shiny-based graphical user interface. |
| Authors: | Bhilan Rhiyu Antama [aut, cre], Heni Setiyaningsih [aut], Edi Istiyono [aut] |
| Maintainer: | Bhilan Rhiyu Antama <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-11-11 23:56:07 UTC |
| Source: | https://github.com/cran/ConverTier2 |
Reads an Excel file containing binary tier responses, validates the data, converts the responses into item scores, and optionally writes the result to a new Excel file.
convert_file(input, output = NULL, rules, n_tier)convert_file(input, output = NULL, rules, n_tier)
input |
Path to the input Excel file. |
output |
Path to the output Excel file. If NULL, the result is returned without writing a file. |
rules |
A named numeric vector containing scoring rules. |
n_tier |
Number of tiers in each item. |
A data frame containing the converted item scores.
Converts binary responses from a tiered assessment into item scores using user-defined scoring rules.
convert_tier(data, rules, n_tier)convert_tier(data, rules, n_tier)
data |
A data frame containing binary tier responses. |
rules |
A named numeric vector containing scoring rules. |
n_tier |
Number of tiers in each item. |
A data frame containing item scores.
Launches the graphical user interface for ConverTier2.
launch_app()launch_app()
This function launches the Shiny application and does not return a value.
Converts text-based scoring rules into a named numeric vector.
parse_rules(text)parse_rules(text)
text |
Character string containing one scoring rule per line. |
A named numeric vector containing scoring rules.
rules <- parse_rules(" 11 = 4 10 = 3 01 = 2 00 = 1 ") rulesrules <- parse_rules(" 11 = 4 10 = 3 01 = 2 00 = 1 ") rules
Checks whether a data frame is suitable for tiered binary response conversion.
validate_data(data, n_tier)validate_data(data, n_tier)
data |
A data frame containing binary tier responses. |
n_tier |
Number of tiers in each item. |
Invisibly returns TRUE if the data are valid.
data <- data.frame( Jwb_1 = c(1, 1, 0), Als_1 = c(1, 0, 0), Jwb_2 = c(0, 1, 1), Als_2 = c(1, 0, 1) ) validate_data(data, n_tier = 2)data <- data.frame( Jwb_1 = c(1, 1, 0), Als_1 = c(1, 0, 0), Jwb_2 = c(0, 1, 1), Als_2 = c(1, 0, 1) ) validate_data(data, n_tier = 2)