[R] Fits & splines
Eric-Olivier Le Bigot
Eric.Le.Bigot at spectro.jussieu.fr
Wed Apr 20 10:47:50 CEST 2005
Hello all,
Do you know of convenient functions that can do:
1) a fit "f(x)" of data points with a spline, and *then*
2) weighted fits of other data points ** with a model of the form
a*f(x-x0) **? [i.e., the goal is to find a and x0, ideally with their
covariance matrix], and
3) if possible, the same as (2) above, but with the same model *convoluted
with a gaussian* (whose height and width should be fitted).
R looks really powerful for doing these kind of things, and I'd like to use
it for analyzing X-ray spectra.
After doing some research, I came accross a few packages: gss, stats, assist,
psline; but I have not yet been able to figure out a way of performing the
fits with splines described in (2) and (3) above.
Any help would be welcome!
EOL [new to R, and not a statistician--only a physicist]
--
Dr. Eric-Olivier LE BIGOT (EOL) CNRS Associate Researcher
~~~o~o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o~o~~~
Kastler Brossel Laboratory (LKB) http://www.lkb.ens.fr
Université P. & M. Curie and Ecole Normale Supérieure, Case 74
4 place Jussieu 75252 Paris CEDEX 05 France
~~~o~o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o~o~~~
office : 01 44 27 73 67 fax: 01 44 27 38 45
ECR room: 01 44 27 47 12 x-ray room: 01 44 27 63 00
home: 01 73 74 61 87 (NEW!) For int'l calls: 33 + number without leading 0
More information about the R-help
mailing list