[R] invalid type (list) for variable 'y' in library minpack.lm
jr@| @end|ng |rom po@teo@no
Thu Jun 25 13:24:23 CEST 2020
On 2020-06-25 12:18 +0200, Luigi Marongiu wrote:
> I am trying to find the best fit to a
> function for epidemic analysis.
> I am trying with the package minpack.lm but
> I don't really know how to use it.
Me neither ...
> So I have some questions:
> - how to solve the list problem? (what is
> the input for nlsLM? I have a vector with
> the actual values, shall I convert in a
I got past the error by give
minpack.lm::nlsLM X and Y in a data.frame
formula = y~(a*x^2)/(b^2 + x^2),
as per ?minpack.lm::nlsLM:
data: an optional data frame in which to evaluate the variables
in‘formula’ and ‘weights’. Can also be a list or an
environment, but not a matrix.
> - how to avoid infinitives?
> - is there another function other than
> nlsLM that I should use?
> - is there another function that could fit
> a sigmoid profile other than Holling type
These other questions seem good and
interesting, I hope someone else can answer
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the R-help