Skip to content
Prev 176293 / 398503 Next

approximation function

Hi,

At the sampling points, do you know the function value "exactly" or you only observe it with "noise"?

If it is the former, you can use an interpolation scheme, such as, for example, interpSpline() in "splines" package.

If it is the latter, you can use a smoother, such as, for example, smooth.spline() or loess().

Ravi.
____________________________________________________________________

Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University

Ph. (410) 502-2619
email: rvaradhan at jhmi.edu


----- Original Message -----
From: carol white <wht_crl at yahoo.com>
Date: Monday, April 6, 2009 4:16 pm
Subject: [R] approximation function
To: r-help at stat.math.ethz.ch