0

我有两个模拟:

Simulate_1 = rnorm(496, mean = 0.1260887, sd = 4.4628976)
Simulate_2 = rnorm(496, mean = -0.0292248, sd = 3.4984520)

在使用 ecdf() 函数并应用数据时,它给出了相同的结果。

Simulate1_ecdf = ecdf(Simulate_1)
Simulate1_f = Simulate1_ecdf(sort(Simulate_1, decreasing = F))

Simulate2_ecdf = ecdf(Simulate_2)
Simulate2_f = Simulate2_ecdf(sort(Simulate_2, decreasing = F)) 

我猜原因是该函数不考虑均值和标准差,而只考虑观察次数。我该如何解决这个问题?先感谢您。

4

0 回答 0