proc fmm中的SAS密度图

时间:2018-01-23 17:38:45

标签: sas

我正在拟合由3个泊松分布组成的混合模型。对于我的报告,我想获得响应的直方图以及拟合的分布。通常,它就像在proc fmm语句中使用plots = density选项一样简单,所以我的代码如下:

ods graphics on;
proc fmm data=hw1 plots=density(bins=30);
model frequency= / dist=poisson k=3 parms(2.21,2.59,3.13);
probmodel / parms(-0.69,0.11);
freq count;
run;
ods graphics off;

我的问题是代码只生成没有密度的直方图。我想知道是否有人知道它是否与Poisson分布有关并且proc fmm不支持它?因为当我将dist = poisson改为dist = gaussian时它起作用。

谢谢

1 个答案:

答案 0 :(得分:1)

This is because the Poisson distribution is a discrete and not a continuous distribution. If you need a continuous distribution, try something like the normal or weibull distributions.