[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-398653-105":3,"doc-detail-398653-en":81,"detail-sidebar-cat-0-en-105":116,"doc-similar-398653":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","true-score-imputation-with-the-tsi-package-in-r-classical-test-theory","True Score Imputation with the TSI Package in R - Classical Test Theory","","Guide to performing true score imputation for classical test theory using the TSI package in R. Demonstrates simulating two groups with a specified mean difference and reliability ratio, creating observed and dummy-coded grouping variables, then generating an imputed latent true-score variable via TSI with mice-based multiple imputations. Shows how to inspect imputed values with complete, analyze relationships using with() and pool() with linear models, and compare regression results using true score versus observed score to illustrate how measurement error changes score dispersion more than the estimated slope.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/true-score-imputation-with-the-tsi-package-in-r-classical-test-theory/398653/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/true-score-imputation-with-the-tsi-package-in-r-classical-test-theory/398653.png","ImageObject",300,407,{"name":42,"@type":43},"Ezra","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-30","2026-09-27",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",12,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What data inputs does the TSI function require for classical test theory imputation?","Question",{"text":63,"@type":64},"It requires os_names (observed score variables), score_types (here CTT), reliability, and the mean and variance of the underlying true score (or an equivalent metric such as z, T-score, or standard). Additional mice_args can set the number of imputations.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How is the imputed true score variable created in the example?",{"text":68,"@type":64},"Running TSI on the prepared data_ctt generates a new variable named true_w (as part of the output). This variable stores the imputed true-score values across multiple imputations.",{"name":70,"@type":61,"acceptedAnswer":71},"Why are regression results similar when using true_w versus the observed score w?",{"text":72,"@type":64},"Under classical test theory in this setup, the slope relating the mismeasured true score to the dummy-coded group predictor is unaffected by measurement error, so the estimated relationship is roughly the same.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},398653,1791079598,{"code":4,"msg":82,"data":83},"success",{"doc_id":79,"user_id":84,"nickname":42,"user_avatar":85,"doc_module":4,"category_id":86,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":87,"file_id":88,"file_url":89,"file_type":90,"file_size":91,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":92,"language":93,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":94,"faqs":95,"seo_title":96,"seo_description":12,"update_tm":97,"read_time":98,"preview_page_count":33,"preview_urls":99},1099514068035,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c",6,"True Score Imputation with the TSI Package in R  \nThe devtools library can be used to install the TSI package directly from Github:  \nlibrary(devtools)  \ninstall_github ( ' mmansolf/TSI ' ) library(TSI)  \nlibrary(mice)  \nClassical Test Theory with One Mismeasured Variable  \nExample data  \nFirst, let’s simulate some data to demonstrate true score imputation for classical test theory! Here I’m simulating two samples of true score x, with mean difference equal to d:  \n\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#  \n\\#SIMULATION PARAMETERS\\#  \nset .seed (0 )  \nn = 1000 \\#sample size  \nratio = 0.6 \\#ratio of true variance to error variance; squared reliability d = 0.5 \\#mean difference  \nmean_x = 0 \\#mean of true score mean_w = 0 \\#mean of observed score var_x = 1 \\#variance of true score var_w = 1 \\#variance of observed score  \n\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#\\#  \n\\# SIMUALTE DATA \\#  \nx1 = rnorm (n, mean_x, sqrt (var_x))  \ne1 = rnorm (n, 0 , sqrt (var_x * ( 1 -ratio) / ratio)) w1 = x1 + e1  \nx2 = rnorm (n, mean_x + d * sqrt (var_x), sqrt (var_x)) e2 = rnorm (n, 0 , sqrt (var_x * ( 1 -ratio) / ratio)) w2 = x2 + e2  \nBefore imputing, notice that we don’t actually have a variable to relate x to include in an imputation model, only two groups. Let’s create a dummy-coded variable y, where 0 corresponds to the first group and 1 corresponds to the second group, to create a data set to work with:  \nw = c(w1, w2)  \ny = c(rep (0 , n), rep ( 1 , n)) data_ctt = data.frame (w, y) head (data_ctt)  \n\\#> w y  \n\\#> 1 1 . 029 0  \n\\#> 2 1 . 177 0  \n\\#> 3 1 .202 0  \n\\#> 4 0 . 138 0  \n\\#> 5 -0 .788 0  \n\\#> 6 -1 .597 0  \nYou can access these data directly as the data_ctt object in the TSI package.  \nTrue score imputation using the TSI function  \nI’ll present the imputation code, then explain the pieces:  \nset .seed (0 )  \nmice_data = TSI (data_ctt,  \nos_names = \"w\" ,  \nscore_types = \"CTT\" ,  \nreliability = ratio,  \nmean = 0 ,  \nvar_ts = 1 ,  \nmice_args = list (m = 5 , printFlag = F))  \n\\#> [1] \"Preliminary checks passed for true score imputation! Building call to mice . . . \"  \nmice_data  \n\\#> Class: mids  \n\\#> Number of multiple imputations: 5 \\#> Imputation methods:  \n\\#> w y true_ w  \n\\#> \"\" \"\" \"truescore\"  \n\\#> PredictorMatrix:  \n\\#> w y true_ w  \n\\#> w 0 1 0  \n\\#> y 1 0 0  \n\\#> true_ w 1 1 0  \nFor classical test theory, the following are required:  \n• os_names: Character vector containing the names of the observed scores. Here, there is just one observed score \"w\".  \n• score_types: Character vector of models used to generate each score. Here, the score was generated under classical test theory \"CTT\".  \n• reliability: Numeric vector of reliability values for each observed score. Here, I copied this from the ratio variable defined above.  \n• mean and var_ts: Numeric vectors of means and variances of the underlying true scores. Here, x was simulated with a mean of 0 and variance of 1.  \n• mice_args: Additional arguments passed to the mice function. Here, I’m specifying 5 imputations and to not print the trace output during execution.  \nObserve that a new variable, true_w, was generated as part of this call. This variable contains the imputed true score values. We can quickly look at the first imputation using the complete function in the mice package:  \nhead (complete (mice_data))  \n\\#> w y true_ w  \n\\#> 1 1 . 029 0 1 . 1793 \\#> 2 1 . 177 0 0 .0141 \\#> 3 1 .202 0 0 .5073 \\#> 4 0 . 138 0 -0.3704 \\#> 5 -0 .788 0 -0.4067 \\#> 6 -1 .597 0 -0 .7955  \nTrying it yourself  \nThis example is one of the examples available when running example(\"TSI\")  \nA couple other options  \nIf true score imputation is required for multiple scores, all such variables must be specified in os_names. If these variables share imputation characteristics ( score_types, reliability, mean, and/or var_ts), a single value can be specified for each, and this input is recycled for all observed scores specified in os_names.  \nInstead of specifying mean and var_ts, another option is to spe","cbCailhZR2zTDp5Q","https://ap.wps.com/l/cbCailhZR2zTDp5Q","pdf",233445,10,"English","# True Score Imputation with the TSI Package in R\n## Classical Test Theory with One Mismeasured Variable\n## True score imputation using the TSI function\n## Trying it yourself\n## Other options for specifying true score metrics\n## Analyzing the imputed data\n## Comparing results with observed scores","[{\"question\":\"What data inputs does the TSI function require for classical test theory imputation?\",\"answer\":\"It requires os_names (observed score variables), score_types (here CTT), reliability, and the mean and variance of the underlying true score (or an equivalent metric such as z, T-score, or standard). Additional mice_args can set the number of imputations.\"},{\"question\":\"How is the imputed true score variable created in the example?\",\"answer\":\"Running TSI on the prepared data_ctt generates a new variable named true_w (as part of the output). This variable stores the imputed true-score values across multiple imputations.\"},{\"question\":\"Why are regression results similar when using true_w versus the observed score w?\",\"answer\":\"Under classical test theory in this setup, the slope relating the mismeasured true score to the dummy-coded group predictor is unaffected by measurement error, so the estimated relationship is roughly the same.\"}]","True Score Imputation with the TSI Package in R - Classical Test Theory | PDF",1790486992,25,[100,104,108,112],{"page_no":22,"url":101,"width":102,"height":103},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7eacc1b03b2bef7190e21da494eab381.webp",983,1272,{"page_no":26,"url":105,"width":106,"height":107},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d9aff573320f4bda58de6c8edb53c7ed.webp",982,1270,{"page_no":30,"url":109,"width":110,"height":111},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d7005bc0e1fac0720f6ce816fa4baae8.webp",981,1269,{"page_no":33,"url":113,"width":114,"height":115},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/639edd2595fa0ebf58ab7892be6ee37a.webp",980,1268,{"code":4,"msg":82,"data":117},[118,122,126,130,135,138,143,148,153,156,159],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":120,"slug":121},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":124,"slug":125},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":128,"slug":129},"Exam",70,"exam",{"id":131,"doc_module":4,"doc_module_name":25,"category_name":132,"show_sort_weight":133,"slug":134},5,"Comic",60,"comic",{"id":86,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":136,"slug":137},50,"technology",{"id":139,"doc_module":4,"doc_module_name":25,"category_name":140,"show_sort_weight":141,"slug":142},7,"Healthcare",40,"healthcare",{"id":144,"doc_module":4,"doc_module_name":25,"category_name":145,"show_sort_weight":146,"slug":147},8,"Research & Report",30,"research-report",{"id":149,"doc_module":4,"doc_module_name":25,"category_name":150,"show_sort_weight":151,"slug":152},9,"Religion & Spirituality",20,"religion-spirituality",{"id":151,"doc_module":4,"doc_module_name":25,"category_name":154,"show_sort_weight":151,"slug":155},"World Cup","world-cup",{"id":92,"doc_module":4,"doc_module_name":25,"category_name":157,"show_sort_weight":92,"slug":158},"Lifestyle","lifestyle",{"id":160,"doc_module":4,"doc_module_name":25,"category_name":161,"show_sort_weight":131,"slug":162},19,"General","general",{"list":164,"token":11},[165,171,178,185,192,198,204,210,216,222],{"doc_id":166,"doc_title":167,"file_type":90,"home_preview_img_url":168,"slug":169,"view_count":26,"category_name":29,"create_tm":170},719665,"Missing Data Imputation via Language Models and Statistics - v0.1.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023927791/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=dQ0oRhBg7LQfIsAXXknhjfI9%2Fdk%3D","missing-data-imputation-via-language-models-and-statistics-v010",1795010754,{"doc_id":172,"doc_title":173,"file_type":90,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":29,"create_tm":177},651512,"Domestic Rotary Lawnmower - Owner's Manual - Battery Charging - Safety Instructions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973787962/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=Q2TvVT%2FwMGyEUa8nc125EdSQtIY%3D","domestic-rotary-lawnmower-owners-manual-battery-charging-safety-instructions",15,1792874695,{"doc_id":179,"doc_title":180,"file_type":90,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":29,"create_tm":184},267624,"Lesson 3 - Control flow with if and ifelse","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229898137753/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=Ulo0YsBQFrypMjnlUJHUmzr%2FQMI%3D","lesson-3-control-flow-with-if-and-ifelse",16,1789423254,{"doc_id":186,"doc_title":187,"file_type":90,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":29,"create_tm":191},127616,"Machine Learning Techniques for Fish Breeding - Decision Making","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839572283/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=kMxaNs4USoo%2F%2FUIjtOBL04BeOFo%3D","machine-learning-techniques-for-fish-breeding-decision-making",18,1785940294,{"doc_id":193,"doc_title":194,"file_type":90,"home_preview_img_url":195,"slug":196,"view_count":149,"category_name":29,"create_tm":197},561752,"ICL7135 - 41/2 Digit, BCD Output, A/D Converter","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947773700/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=5AVkUMkSdvguTLaOmv9Ahy1tc%2Bc%3D","icl7135-412-digit-bcd-output-ad-converter",1791806842,{"doc_id":199,"doc_title":200,"file_type":90,"home_preview_img_url":201,"slug":202,"view_count":190,"category_name":29,"create_tm":203},121610,"Bayesian Modelling in Machine Learning - A Tutorial Review - Central ideas and interconnections","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835428401/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=iVTLCEoujdtv%2F9W8IAMPg0X7AWQ%3D","bayesian-modelling-in-machine-learning-a-tutorial-review-central-ideas-and-interconnections",1785736467,{"doc_id":205,"doc_title":206,"file_type":90,"home_preview_img_url":207,"slug":208,"view_count":149,"category_name":29,"create_tm":209},327227,"Pano2World - End-to-End 3D Generation via Unified Multi-View Sequences","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909312391/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=95sDkFNttz%2FC1iHXyblcbnpqDQw%3D","pano2world-end-to-end-3d-generation-via-unified-multi-view-sequences",1789976759,{"doc_id":211,"doc_title":212,"file_type":90,"home_preview_img_url":213,"slug":214,"view_count":176,"category_name":29,"create_tm":215},398533,"TSI Link Report Creator - Setup Guide (US)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919256773/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=SYidjq68T0R4d4%2FG%2BIdVruaGdVo%3D","tsi-link-report-creator-setup-guide-us",1790483290,{"doc_id":217,"doc_title":218,"file_type":90,"home_preview_img_url":219,"slug":220,"view_count":30,"category_name":29,"create_tm":221},697979,"OCaml Introduction: Tuples and Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010146792/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=tPlJ5YTGAj%2FXBoQbwmSGUleCHyc%3D","ocaml-introduction-tuples-and-lists",1794446560,{"doc_id":223,"doc_title":224,"file_type":90,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":29,"create_tm":228},562042,"ICL7106/7107 - 3%Digit A/D Converter - Key Performance and Operating Information","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947790263/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796176859&Signature=grwnbKjjg7pEbh4FIvua9gr4suY%3D","icl71067107-3digit-ad-converter-key-performance-and-operating-information",13,1791807571]