[R] predictor raised to a constant power using gnm

natalia norden natnorden at gmail.com
Tue Jun 7 19:16:43 CEST 2011


Hi,

I'm using the package gnm to perform non-linear models and I cannot  
find how to write the formula for a power function model. I found out  
that there was a function Raise() to do this but it no longer exists  
in the package.  I guess I need to use the nonlin function Mult(), but  
I couldn't find how.

The equation is something like (1)   y ~ A * x^B   or  (2)    y ~ A *  
B^x.

Thank you for your help,

Best regards,
Natalia



More information about the R-help mailing list