Thanks for your reply.

I know the exact values. The purpose is to find out the distribution function 
if it is exponential, linear, etc.

Best,

Carol

--- On Mon, 4/6/09, Ravi Varadhan <rvarad...@jhmi.edu> wrote:
From: Ravi Varadhan <rvarad...@jhmi.edu>
Subject: Re: [R] approximation function
To: wht_...@yahoo.com
Cc: r-h...@stat.math.ethz.ch
Date: Monday, April 6, 2009, 1:39 PM

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: rvarad...@jhmi.edu


----- Original Message -----

Date: Monday, April 6, 2009 4:16 pm
Subject: [R] approximation function
To: r-h...@stat.math.ethz.ch


> Hi,
>  Having a set of values (non-time series data), what are the 
> approximation functions that could determine the trend of the values?
>  
>  Cheers,
>  
>  Carol
>  
>  
>        
>       [[alternative HTML version deleted]]
>  
>  ______________________________________________
>  R-help@r-project.org mailing list
>  
>  PLEASE do read the posting guide 
>  and provide commented, minimal, self-contained, reproducible code. 



      
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to