Skip to content
Prev 186277 / 398498 Next

error: optim(rho, n2ll.rho, method = method, control = control, beta = parm$beta, : initial value in 'vmmin' is not finite

I have not used 'sna'. 


      Have you tried using "debug" to walk through the code line by 
line, examining and even changing things at will? 


      For example, how big is "rho", passed as starting values to 
"optim"?  If that matches the size of your adjacency matrix, it could 
expose a theoretical problem.  Similarly, how many observations do you 
have?  For example, if you have 2,000 observations, that might help 
explain why you get an answer with adjacency matrices smaller than that 
but not with larger matrices. 


      Hope this helps. 
      Spencer Graves
p.s.  Are you aware that you can get the source code for any CRAN 
package?  For example, the source for the "sna" package is available in 
a file "sna_2.0-1.tar.gz" downloadable from 
"http://cran.fhcrc.org/web/packages/sna/index.html".  If the people who 
wrote a particular functions included comments in their code, they will 
appear in the *.tar.gz file but not in the version you get by typing the 
function name.
Brandy Lee Aven wrote: