View source: R/classification.R
HB.tsm | R Documentation |
An implementation of Lords (1965, p. 265) equation 37 for estimating the raw moments of the true-score distribution.
HB.tsm(x, r, N, k)
x |
Vector of values representing sum-scores. |
r |
The number of raw moments to be calculated. |
N |
The number of test items (i.e., test length). |
k |
Lord's k (see documentation for the |
# Generate some data under the Beta Compound-Binomial distribution, where the
# Compound Binomial distribution has 100 trials and Lord's k = 2, and the
# Beta distribution has location parameters l = .15 and u = .85, and shape
# parameters alpha = 6 and beta = 4:
obs <- rBetacBinom(1000, 100, 2, .15, .85, 6, 4)
# To estimate the first four raw moments of the underlying Beta distribution:
HB.tsm(x = obs, r = 4, N = 100, k = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.