Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
R 中 Kolmogorov–Smirnov (KS) 测试的广义极值函数的缩写是什么。我正在尝试以下代码,但它不起作用:
ks.test(data.frame,"gev")
请注意,第一个参数不能是 data.frame。它必须是一个数字向量。
只需传递累积分布函数:
x <- 1:10 library(SpatialExtremes) ks.test(x, pgev, scale = 0.1, shape = 1) # # One-sample Kolmogorov-Smirnov test # #data: x #D = 0.9131, p-value = 4.911e-11 #alternative hypothesis: two-sided