我正在运行以下Ipfp代码:
> NY_ind_occ_matrix <- Ipfp(InitialM, TargetList, TargetData, print=TRUE,
iter=100, tol=1e-10)
... ITER 1
stoping criterion: 0.003949819
... ITER 2
stoping criterion: 4.336809e-19
Convergence reached after 2 iterations!
Warning message:
In Ipfp(InitialM, TargetList, TargetData, print = TRUE, iter = 100, :
Target not consistents - shifting to probabilities!
Check input data!
所以我检查了边距:
> NY_ind_occ_matrix$check.margins
NULL
我什至检查了页边距,并在Excel中将它们匹配。是什么导致此错误?如误差所示,结果矩阵的概率为。因此,仍然无法正常工作。有人知道发生了什么吗?
谢谢!