Try port algorithm.  Please provide complete reproducible code and data
when posting.

> y <- 1/(x <- 1:5)
> nls(y~k/x^n, start=list(k=1, n=1), algorithm = "port")
Nonlinear regression model
  model:  y ~ k/x^n
   data:  parent.frame()
k n
1 1
 residual sum-of-squares: 0

Algorithm "port", convergence message: both X-convergence and relative
convergence (5)


On Jan 23, 2008 2:58 PM, Jarek Jasiewicz <[EMAIL PROTECTED]> wrote:
> Hi!
>
> How to write in model's formula of type:
>
> nls(y~k/(x^n), data=data, start=list(k=1,n=1))
> i.e the problem is on x^n, I(x^n) generate error
>
> thanks
> Jarek

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to