[R] 1-d function fitting
p.dalgaard at biostat.ku.dk
Thu Oct 25 23:37:50 CEST 2007
Rolf Turner wrote:
> On 26/10/2007, at 10:14 AM, m p wrote:
>> I'd like to check if my data can be well approximated with a function
>> (1+x/L) exp(-x/L)
>> and calculate the best value for L. Is there some package in R that
>> would simplify that task?
> Is this a homework question?
> Rolf Turner
Hmm, I wouldn't pose a question like that. It could be related to a
homework problem, but I don't think it actually is one. And nls() et al.
is merged into the stats package these days, so in a sense, you don't
even need to know the package. example(nls) should be enough to get rolling.
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help