{"id":27642254,"url":"https://github.com/m-py/dota2","last_synced_at":"2025-10-14T02:02:48.183Z","repository":{"id":80958661,"uuid":"113296808","full_name":"m-Py/DOTA2","owner":"m-Py","description":"R package for discrete option test analysis","archived":false,"fork":false,"pushed_at":"2018-10-30T12:08:28.000Z","size":58,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T23:53:55.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-Py.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-12-06T09:35:42.000Z","updated_at":"2023-12-12T14:23:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"1be983a7-c67d-4afb-b46e-7153b0ce7af5","html_url":"https://github.com/m-Py/DOTA2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m-Py/DOTA2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Py%2FDOTA2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Py%2FDOTA2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Py%2FDOTA2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Py%2FDOTA2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-Py","download_url":"https://codeload.github.com/m-Py/DOTA2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Py%2FDOTA2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017542,"owners_count":26086113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-23T23:53:54.861Z","updated_at":"2025-10-14T02:02:48.177Z","avatar_url":"https://github.com/m-Py.png","language":"R","readme":"# DOTA2\n\nR package for discrete option test analysis\n\n## Installation\n\n```R\nlibrary(\"devtools\") # if not available: install.packages(\"devtools\")\ninstall_github(\"m-Py/DOTA2\")\n\n# load the package via \nlibrary(\"DOTA2\")\n```\n\n## Usage\n\n### Retrieve data\n\nThe function `get_response_table` can be used to read test data from an\nUnipark-exported JSON string:\n\n```R\n\n## `testData` is a vector of Unipark-exported JSON strings; `id` is a\n## vector of unique test-taker IDs. \n\ntest_dat \u003c- get_response_table(testData, id)\n\n```\n\nThe `by_option` parameter controls whether response data is retrieved on\nthe level of an item or on the level of each option in each item. It\ndefaults to `FALSE`, i.e. in the default case we retrieve response data\non item level. If `by_option` is `TRUE` we retrieve response data for\neach response option. \n\n```R\n\nitem_data \u003c- get_response_table(testData, id, by_option = FALSE)\noption_data \u003c- get_response_table(testData, id, by_option = TRUE)\n\n```\n\n### Data description\n\n`get_response_table` returns a `data.frame` in [long\nformat](https://en.wikipedia.org/wiki/Wide_and_narrow_data). \n\n#### Item data\n\nIf `by_option` is `FALSE`, each row represents an item, the test-taker\nwho responded to the item is represented in the column `id`. The column\n`item_id` contains the ID representing the item. Additionally (as of the\ntime of this writing), the following columns are stored: \n\n- `correct`: was the item answered correctly\n- `option_id_selected`: the ID of the response option that was selected\n- `position_solution`: Where was the solution shown (1 means it was the\n   option at the top right below the stem)\n- `item_position`: Informs about the position of the item in the\n   presentation of all test items (1 means it was the first item that\n   was presented in the test)\n- `response_time`: the response time in ms\n\nIf the test is a DOMC test, the following information is also stored:\n\n- `false_alarm`: was a distractor incorrectly accepted\n- `miss`: was the solution incorrectly rejected\n- `n_options_seen`: how many response options did the test-taker see\n\nThese columns have a different meaning in a DOMC test:\n\n- `option_id_selected` can be 0, meaning that no option was accepted\n- `position_solution`: which option was the solution in the sequential\n  presentation order\n\n#### Option data\n\nIf `by_option` is `TRUE`, each row represents an option. The test-taker\nwho responded to the option is represented in the column `id`. The\ncolumn `item_id` contains the ID representing the item the option\nbelongs to. The column `option_id` contains the ID of the response\noption. Additionally (as of the time of this writing), the following\ncolumns are stored:\n\n- `selected`: was the option selected (1/0)\n- `is_solution`: is the option a solution (1/0)\n- `option_position`: the position of the option in the presentation\n  order\n\nFor DOMC tests, the following additional data is stored:\n\n- `seen`: was this option presented to the test-taker (1/0)\n- `hit_by_option`: did a hit occur when processing this option (1/0/NA)\n   + 1 means this option was the solution and was accepted\n   + 0 means this option was the solution and was rejected\n   + NA means this option was not a solution or was not seen\n- `false_alarm_by_option`: did a false alarm occur when processing this\n  option (1/0/NA)\n    + 1 means this option was a distractor and was accepted\n    + 0 means this option was a distractor and was rejected\n    + NA means this option was not a distractor or was not processed\n- `response_time_by_option`: the response time for the option in ms\n\n### Merging option and item data\n\nOption and item response data can be joined if that is desired (it does\nhowever make the interpretation of column names more ambiguous):\n\n```R\n\nmerge(item_data, option_data, by = c(\"id\", \"item_id\"))\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-py%2Fdota2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-py%2Fdota2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-py%2Fdota2/lists"}