Package: kits 0.25.2

kits: Psychometric Tools for the Kids in Taiwan Developmental Scale

Tools for the developmental scale of KIT (Kids in Taiwan: National Longitudinal Study of Child Development and Care). Each model is written once and 'RTMB' gives every derivative (the conditional maximum likelihood, the person scores, the threshold standard errors, the norms); the closed-form steps use base R, and the data are handled with 'dplyr', 'tidyr' and 'purrr'. Items are calibrated with the partial credit model (Masters, 1982) <doi:10.1007/BF02296272> by conditional maximum likelihood, written as the elementary symmetric functions of the step parameters. Cohorts are linked by mean/sigma (Marco, 1977) <doi:10.1111/j.1745-3984.1977.tb00033.x> on the Thurstonian thresholds, and anchor items link to the D score of the Global Scales for Early Development (Weber et al., 2019) <doi:10.1136/bmjgh-2019-001724>. Person scores are weighted likelihood estimates (Warm, 1989) <doi:10.1007/BF02294627>; for the partial credit model they equal the Jeffreys modal estimates (Firth, 1993) <doi:10.1093/biomet/80.1.27> (Magis, 2015) <doi:10.1007/s11336-013-9378-5>, which are computed by the Newton method of 'RTMB', one per item set and raw score. Norms are continuous sinh-arcsinh norms (Jones and Pewsey, 2009) <doi:10.1093/biomet/asp053> fitted by maximum likelihood with the polynomial model and bounds of 'cNORM' (Lenhard and Lenhard, 2021) <doi:10.1177/0013164420928457>, minimised by nlminb with the gradient and Hessian of 'RTMB'. Differential item functioning combines the likelihood-ratio test of Andersen (1973) <doi:10.1007/BF02291180> with the item-pair test of Bechger and Maris (2015) <doi:10.1007/s11336-014-9408-y>, computed by CML in each group. The linking error at each score and through a chain of links, the statistics of the waves as a vertical scale, the precision of each form across the scale, and IRT true-score and observed-score equating of raw scores follow Kolen and Brennan (2014) <doi:10.1007/978-1-4939-0317-7>. The plots are drawn with 'plotly'. The algorithms are also exported as plain functions (the 'algo_' layer) that chain with the pipe, and kits_algorithm() names the steps, formulas and references behind a result; teaching scripts in 'inst/scripts' recompute the estimates with 'RTMB' on the demo data. The companion package 'kitsPreview' computes the same results with 'dexter' and 'cNORM' for validation.

Authors:Jie-Wen Tsai [aut, cre]

kits_0.25.2.tar.gz
kits_0.25.2.zip(r-4.7-any)kits_0.25.2.zip(r-4.6-any)kits_0.25.2.zip(r-4.5-any)
kits_0.25.2.tgz(r-4.6-any)kits_0.25.2.tgz(r-4.5-any)
kits_0.25.2.tar.gz(r-4.7-any)kits_0.25.2.tar.gz(r-4.6-any)
kits_0.25.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
kits/json (API)

# Install 'kits' in R:
install.packages('kits', repos = c('https://jiewentsai.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jiewentsai/kits/issues

Datasets:
  • kitm03 - Simulated KIT data for teaching
  • kitm36 - Simulated KIT data for teaching

On CRAN:

Conda:

quarto

4.23 score 1 stars 2 packages 28 scripts 54 exports 70 dependencies

Last updated from:6df7a02b86. Checks:3 OK, 6 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK544
source / vignettesOK258
linux-releaseERROR427
macos-releaseERROR524
macos-oldrelERROR485
windows-develERROR551
windows-releaseERROR552
windows-oldrelERROR549
wasm-releaseOK131

Exports:AGE_TICKSalgo_cmlalgo_esfalgo_jmealgo_linealgo_link_erroralgo_lwalgo_mean_sigmaalgo_pcmalgo_screenalgo_shashalgo_shash_zalgo_thresholdskitskits_algorithmkits_anchorskits_checkkits_cmlkits_convertkits_difkits_dif_combinekits_driftkits_esfkits_expected_scorekits_infokits_informationkits_itemkits_item_restscorekits_item_tablekits_itemfitkits_link_checkkits_link_errorkits_link_linekits_link_pointskits_link_screenkits_linkingkits_norm_ageskits_norm_datakits_norm_fitkits_norm_screenkits_norm_tablekits_norm_zkits_normskits_pcm_probkits_precisionkits_respkits_save_plotkits_simkits_statskits_subjkits_subj_tablekits_thresholdskits_verticalNORM_PCT

Dependencies:askpassbase64encbslibcachemclicpp11crosstalkcurldata.tabledigestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetshttrisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclemagrittrMASSMatrixmemoisemimeopensslotelpillarpkgconfigplotlypromisespurrrR6rappdirsRColorBrewerRcppRcppEigenrlangrmarkdownRTMBS7sassscalesstringistringrsystibbletidyrtidyselecttinytexTMButf8vctrsviridisLitewithrxfunyaml

kits 入門:從作答到常模
流程 | 0 資料 | 作答表:kits_resp() | 1 校準 | 1.1 印出來的數字 | 1.2 二點計分和混合計分 | 2 世代連結(M36 → M03) | 3 接到 D | 4 計分與換算 | 疊表 | 原始分換算表 | 兩組題的原始分對照 | 5 常模 | 6 檢查 | 下一步 | 引用

Last update: 2026-10-29
Started: 2026-10-29

kits 進階:題目分析、新波次、公式、量尺的性質
資料:入門篇的第 0 到 5 步 | 7 題目分析和報告的圖 | 7.1 通過月齡要用的資料 | 7.2 性別 DIF:kits_dif()、kits_dif_combine() | 7.3 題目表:kits_item_table() | 7.4 成長曲線與題目:plot(item_tab) | 7.5 成長階梯:plot(item_tab, type = "ladder") | 7.6 男女的常模:kits_norms(..., by = "sex") | 8 新的波次 | 8.1 哪些題偏移:kits_drift() | 8.2 固定參數校準 | 8.3 計分與常模 | 8.4 各波次的中位數:plot(v, type = "median") | 分批進來時 | 9 演算法和程式 | 9.1 演算法:kits_algorithm() | 9.2 拆開的演算法:algo_ 函數 | 9.3 教學腳本:inst/scripts/ | 10 量尺的性質(Kolen & Brennan, 2014) | 10.1 每個 θ 的連結誤差 | 10.2 斜率和 1 比 | 10.3 接到 D 的用語 | 10.4 波次是垂直量尺:kits_vertical() | 10.5 量尺上的精準度:kits_precision() | 10.6 兩組題的原始分對照:kits_subj_table() 和 kits_expected_score() | 10.7 世代連結的獨立檢查:kits_link_check() | 10.8 篩點的規則:spread、unit | 10.9 反應機率(RP):coef(item, rp = )、kits_item_table(rp = ) | 10.10 新波次的品質管制 | 引用

Last update: 2026-10-29
Started: 2026-10-29

Readme and manuals

Help Manual

Help pageTopics
Age ticks for plotsAGE_TICKS
Conditional maximum likelihood of the PCMalgo_cml
Elementary symmetric functions and the conditional item-score distributionsalgo_esf
Jeffreys modal estimates of ability and their SEsalgo_jme
Apply, invert or compose straight linesalgo_line
The linking error by resampling whole itemsalgo_link_error
The raw-score distribution given theta (Lord-Wingersky)algo_lw
The mean/sigma linealgo_mean_sigma
PCM category probabilities and moments of one itemalgo_pcm
One round of screening of the link pointsalgo_screen
A shash norm model by maximum likelihoodalgo_shash
Same-age z-scores under a shash norm modelalgo_shash_z
Thurstonian thresholds of the steps and their SEsalgo_thresholds
One-row summaries of kits results, ready to stackas.data.frame.kits as.data.frame.kits_drift as.data.frame.kits_info as.data.frame.kits_item as.data.frame.kits_link as.data.frame.kits_link_check as.data.frame.kits_norm_fit as.data.frame.kits_norm_screen as.data.frame.kits_stats
Simulated KIT data for teachingkitm03 kitm36
Calibrate and score in one stepkits plot.kits print.kits
The algorithm behind a resultkits_algorithm
The anchor items of the link to D (GSED), for one dscore keykits_anchors
Diagnostics of one or more resultskits_check
Convert scores or thresholds with one or more linkskits_convert
Differences between groups: LR test and item DIFkits_dif plot.kits_dif print.kits_dif print.kits_dif_summary summary.kits_dif
Combined DIF decision over two cohortskits_dif_combine
Item drift: do the items behave the same in a new wave of data?kits_drift plot.kits_drift print.kits_drift
Elementary symmetric functions of CML and the conditional item-score distributionsas.data.frame.kits_esf kits_esf plot.kits_esf print.kits_esf
Provenance of a resultkits_info print.kits_info
Test information and expected score as functions of thetakits_expected_score kits_expected_score.default kits_expected_score.kits kits_expected_score.kits_fit kits_expected_score.kits_item kits_information kits_information.default kits_information.kits kits_information.kits_fit kits_information.kits_item print.kits_expected_score print.kits_information
Item calibration: the PCM by CML in RTMB, plus the threshold of every stepcoef.kits_item kits_item plot.kits_item print.kits_item
Item-restscore association: observed against expected gammakits_item_restscore plot.kits_item_restscore print.kits_item_restscore
The calibration step by step: counts, CML, thresholdskits_cml kits_item_steps kits_stats kits_thresholds print.kits_stats
Item table: each item with its D, ages, DIF and stem, for the report plotskits_item_table plot.kits_item_table
Item fit: infit and outfit mean squares, and the item-rest correlationkits_itemfit plot.kits_itemfit
Independent checks of a link between two calibrationskits_link_check print.kits_link_check
A link step by step: points, screening, line, linking errorkits_link_error kits_link_line kits_link_points kits_link_screen kits_link_steps
Link two scales: between two calibrations, or to D through anchor itemskits_linking
Confidence intervals, covariances and other base methods for kits resultsconfint.kits_dif confint.kits_item confint.kits_link kits_methods logLik.kits_item logLik.kits_norms nobs.kits_item nobs.kits_norms simulate.kits_item update.kits_item update.kits_norms vcov.kits_item
Age range of the normskits_norm_ages
Screening waves before fitting norms: waves with scores piled at the floorkits_norm_screen plot.kits_norm_screen
A norm step by step: data, fit, tablekits_norm_data kits_norm_fit kits_norm_steps kits_norm_table print.kits_norm_data print.kits_norm_fit
Same-age z-scorekits_norm_z kits_norm_z.default kits_norm_z.kits_subj
Fit a continuous norm (shash by maximum likelihood in RTMB)kits_norms kits_norms.default kits_norms.kits_subj print.kits_norms
PCM category probabilities, expected scores and information given thetaas.data.frame.kits_pcm_prob kits_pcm_prob plot.kits_pcm_prob print.kits_pcm_prob
Precision of each form across the scalekits_precision plot.kits_precision print.kits_precision
Responses with the information of each childkits_resp plot.kits_resp print.kits_resp summary.kits_resp
Save a plot: interactive html and static pngkits_save_plot
Simulate PCM responseskits_sim
Person abilities (WLE) that can always be computedkits_subj print.kits_subj
Raw-score to ability tablekits_subj_table print.kits_pattern_table print.kits_subj_table
Statistics of a vertical scale: growth, variability and separation by wavekits_vertical plot.kits_vertical print.kits_vertical
Default percentiles of the normsNORM_PCT
Plot a continuous norm: percentile curves, one norm or by groupplot.kits_norms
Print or plot a linkcoef.kits_link plot.kits_link print.kits_link
Print a norm screenprint.kits_norm_screen
Print a kits tableprint.kits_itemfit print.kits_table rbind.kits_subj rbind.kits_table [.kits_table
Summary of a kits result: a short print and the diagnosticsprint.kits_summary summary.kits summary.kits_drift summary.kits_item summary.kits_link summary.kits_link_check summary.kits_norm_screen summary.kits_table