Skip to content
Prev 138574 / 398506 Next

matrix inversion using solve() and matrices containing large/small values

On 3/5/2008 8:21 AM, gerardus vanneste wrote:
If the matrix actually isn't singular, then a rescaling of the 
parameters should help a lot.  I see the diagonal of infomatrix as

 > diag(infomatrix)
[1] 5.930720e-03 3.872339e+02 4.562529e+07 6.281634e+12 9.228140e+17
[6] 1.398687e+23 2.154124e+28 3.345598e+33

so multiplying the parameters by numbers on the order of the square 
roots of these entries (e.g. 10^c(-1, 1, 4, 6, 9, 12, 14, 17)), and 
redoing the rest of the calculations on that scale, should work.

Duncan Murdoch