R语言betafunctions包 observedmoments函数使用说明

返回R语言betafunctions包函数列表


功能\作用概述:

计算观察分数向量的原始、中心或标准化矩特性。


语法\用法:

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)