【发布时间】:2023-03-14 22:00:01
【问题描述】:
当使用名为 did 的 R 包时,我收到此错误:
Error in solve.default(preV) : system is computationally singular:
reciprocal condition number = 4.09946e-19
solve 函数有一个名为tol 的参数,我可以通过它设置容差,从而避免问题。但是包没有给出这个选项来从它的顶层函数中指定这个tol,所以没有办法为solve设置tol。
我正在考虑另一种选择。由于solve() 默认使用.Machine$double.eps 作为tol,所以如果我可以减少这个默认值会很好。怎么样?
【问题讨论】: