[R] Newbie Question: Shifted Power Fit?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Aug 16 01:37:53 CEST 2001


"Panagiotis G. Ipeirotis" <pirot at cs.columbia.edu> writes:

> Hi,
> 
> I am completely new to R and I feel kind of lost.
> Although I can accomplish most of the basic taks,
> I am very confused when I am trying to do the 
> following:
> 
> I have multiple sets of 2D data that are coming from
> distributions of the form:
  ^^^^^^^^^^^^^
relations? functions?

> y = A(x-C)^B     (Eq.1)
> 
> I am trying to estimate for each set the best values 
> of A, B, and C so that Eq.1 will be the best fit for
> the data. I guess that it should be easy to do, but
> I lack the experience :(
> 
> I would appreciate any help on this.

Sounds like nonlinear least squares might be used. Try

library(nls)
?nls

and have a look at the examples.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list