[R] nls factor

Michael A. Miller mmiller3 at iupui.edu
Wed Apr 15 18:02:27 CEST 2009


>>>>> "Manuel" == Manuel Morales <Manuel.A.Morales at williams.edu> writes:

    > nls(y ~ a[fac]*x^b, start=list(a=c(1,1), b=0.25))

Did you mean a[f]?

nls(y ~ a[f]*x^b, start=list(a=c(1,1), b=0.25))

Mike



More information about the R-help mailing list