Displaying 1 result from an estimated 1 matches for "scrore6".
Did you mean:
score6
2007 Feb 02
1
Snow Package and R: Exported Variable Problem
...usterApplyLB(cl, 2:S, simClust) where cl is the
cluster and S is a constant defined above as 500. Using print
statements (since snow, or R for that matter, has next to no ability
to debug) I found that the error cropped up in this statement:
theta6 = optim(c(0,0,0,0,0,0,.2), loglikelihood, scrore6, method =
"CG", control=list(fnscale=-1,reltol=1e-8,maxit=2000))$par
Both the functions loglikelelihood and score6 use x1, but I know that
it is getting exported to the node correctly since it gets assigned
earlier in the simulation:
x1 = rep(0,n1)
The error I stated above happen...