【发布时间】:2014-10-25 03:52:24
【问题描述】:
我正在使用 EnvStats 包,更具体地说是 simulateVector 函数从 pdf 生成随机样本。
我尝试使用普通 pdf 并更改截断此 pdf 的参数:
> vfy <- simulateVector(10, distribution = "norm",
+ param.list = list(mean = 400, sd = 40), seed = 47,
+ sort = FALSE, left.tail.cutoff = 1, right.tail.cutoff = 1)
> vfy
[1] 479.7879 428.4457 407.4162 388.7294 404.3510 356.5705 360.5807 400.6052 389.9182 341.3700
> vfy <- simulateVector(10, distribution = "norm",
+ param.list = list(mean = 400, sd = 40), seed = 47,
+ sort = FALSE, left.tail.cutoff = 0, right.tail.cutoff = 0)
> vfy
[1] 479.7879 428.4457 407.4162 388.7294 404.3510 356.5705 360.5807 400.6052 389.9182 341.3700
令我惊讶的是,结果并没有变化......怎么了?谢谢
【问题讨论】: