search for: makefunct

Displaying 2 results from an estimated 2 matches for "makefunct".

Did you mean: makefuncs
2012 Aug 01
1
Foreach help!
Hi, just during these vacation days, I'm trying to approach with multicore package and I have some troubles with foreach. ex. foreach(.combine=c, ii=1:200, jj=1:500) %dopar% makefunction[ii,jj] Command seem to work but if I see ii and jj value at the and of cycle, they are both 200 instead than ii=200 and jj=500. Why?? Can someone help me? Thank you in advance. Max -- View this message in context: http://r.789695.n4.nabble.com/Foreach-help-tp4638688.html Sent from the R...
2012 Jul 04
2
About nlminb function
Hello I want to use the nlminb function but I have the objective function like characters. I can summarize the problem using the first example in the nlminb documentation. x <- rnbinom(100, mu = 10, size = 10) hdev <- function(par) -sum(dnbinom(x, mu = par[1], size = par[2], log = TRUE)) nlminb(c(9, 12), objective=hdev) With the last instructions we obtain appropriate results. If I have