Skip to content

Analysis and graphics by groups

3 messages · Cristiano Yuji Sasada Sato, Andrew Robinson, Rick Bilonick

#
hi Christiano,

the error is that FUN is not a function.  That is true, the argument
that you are passing to FUN is a different class. Instead of fx, for
example, where fx is your model code below, try to write it as a
function of the arguments that you want to split by Cerca.

You might try to construct a minimal, reproducible, commented example
to help us explain what you need to do.

I don't have the gapply function and I don't know which package it is
in (perhaps you could provide that  information next time) so I can't
help more than that.

Andrew
On Fri, Apr 29, 2011 at 04:31:51PM -0300, Cristiano Yuji Sasada Sato wrote:

        

  
    
#
Unless I misunderstand, I think you might want the nlsList function from the nlme package. It will let you fit a nonlinear model for grouped data. You use "|" to separate the model formula from the grouping factor.

Rick