Skip to content
Prev 326287 / 398502 Next

Non-linear modelling with several variables including a categorical variable

If preytype is an independent variable, then models based on it should 
be OK. If preytype comes into the parameters you are trying to estimate, 
then the easiest way is often to generate all the possible combinations 
(integers --> fairly modest number of these) and run all the least 
squares minimizations. Crude but effective. nlxb from nlmrt or nlsLM 
from minpack.lm may be more robust in doing this, but less efficient if 
nls works OK.

JN
On 13-07-03 06:00 AM, r-help-request at r-project.org wrote: