计算观察分数向量的原始、中心或标准化矩特性。
observedmoments(
x,
type = c("raw", "central", "standardized"),
orders = 4,
correct = TRUE
)
x : 要计算力矩分布的值向量。
type : 确定要计算哪些力矩类型的特征向量。允许值为“原始”、“中心”和“标准化”。
orders : 为每种力矩类型计算的力矩阶数。
correct : 合乎逻辑。是否在订单估计中包含偏差修正。默认值为TRUE。
# Generate some fictional data. Say, 100 individuals take a test with a
# maximum score of 100 and a minimum score of 0.
set.seed(1234)
testdata < - rbinom(100, 100, rBeta.4P(100, .25, .75, 5, 3))
hist(testdata, xlim = c(0, 100))
# To compute the first four raw, central, and standardized moments for this
# distribution of observed scores using observedmoments():
observedmoments(x = testdata, type = c("raw", "central", "standardized"),
orders = 4, correct = TRUE)