Re: [R] Error when trying to update cpglm model

2012-06-20 Thread Rubem Kaipper Ceratti
Thanks, Peter, it's working perfectly now.  And yes, the function does return 'something'. I just wanted to make the code minimal. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Error when trying to update cpglm model

2012-06-19 Thread Rubem Kaipper Ceratti
Dear all, I've been having problems running update() to re-fit a cpglm model inside a function (as in the code below). The solution is probably simple, but I'm stuck. If anyone could help, I'd greatly appreciate it. Regards, Rubem ## R code library(cplm) ## Data simulation

[R] Error message from optim

2012-05-23 Thread Rubem Kaipper Ceratti
Dear list, When running the script below, the optim function returns the message 'Error in function (par) : could not find function fn'. I've re-read the code a few times and just can't figure out why it's happening. Any help/suggestion is appreciated. Regards, Rubem ## R script

Re: [R] Error message from optim

2012-05-23 Thread Rubem Kaipper Ceratti
optim On 2012-05-23 09:39, Rubem Kaipper Ceratti wrote: Dear list, When running the script below, the optim function returns the message 'Error in function (par) : could not find function fn'. I've re-read the code a few times and just can't figure out why it's happening. Any help/suggestion