为什么R不能绘制密度图?

时间:2019-03-24 20:30:10

标签: r density-plot

我运行了一个双变量阈值过量模型,并想绘制诊断图。我收到此错误消息。

Error in contour.default(xvec, yvec, dens, main = main, xlab = xlab, ylab = ylab,  : 
invalid NA contour values

代码

m1 <- fbvpot(matr1, thresh, model = "log")
plot(m1) 

没有给出密度图的任何结果

这是模型结果

Call: fbvpot(x = matr1, threshold = thresh, model = "log") 
Likelihood: censored 
Deviance: 4949.319 
AIC: 4959.319 
Dependence: 0.0009124526 

Threshold: -3.5023 15.7616 
Marginal Number Above: 440 440 
Marginal Proportion Above: 0.5577 0.5577 
Number Above: 258 
Proportion Above: 0.327 

Estimates
 scale1   shape1   scale2   shape2      dep  
 1.6107  -0.4623   3.9580  -0.2119   0.9993  

Standard Errors
   scale1     shape1     scale2     shape2        dep  
7.749e-02  2.291e-02  2.165e-01  2.894e-02  2.002e-06  

Optimization Information
  Convergence: successful 
  Function Evaluations: 91 
  Gradient Evaluations: 10

0 个答案:

没有答案