View source: R/Kernel Equating Functions.R
FindBestBandwidth1Iter | R Documentation |
Based on paper by Liang and von Davier (2014). It works by splitting the data set in half, fitting a continuized distribution with a gaussian kernel to one half of the data, and then evaluating the log-likelihood of this distribution against the other half of the data.
FindBestBandwidth1Iter(scores, fX)
scores |
Vector of possible scores. |
fX |
Number of people achieving each score (should be whole numbers). Must be same length as scores. |
The function returns a single value representing the optimal bandwidth.
Liang, T., & von Davier, A. A. (2014). Cross-validation: An alternative bandwidth-selection method in kernel equating. Applied Psychological Measurement, 38(4), 281-295.
tot1=rowSums(mathsdata)
tab1=table(tot1)
FindBestBandwidth1Iter(as.numeric(names(tab1)),as.vector(tab1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.