cumfd | R Documentation |
Function smooth.morph()
maps a sorted set of variable values inside
a closed interval into a set of equally-spaced probabilities in [0,1].
cumfd(xrnd, xrng, nbreaks=7, nfine=101)
xrnd |
A vector of variable unsorted values. |
xrng |
A vector of length 2 containing the boundary values. |
nbreaks |
The number of knots to use to define object |
nfine |
The number of equally spaced values spanning xrng. |
Only the values of x within the interior of xrng are used in order to avoid distortion due to boundary inflation or deflation.
A named list of length 2 containing:
Wfdobj |
a functional data object defining function $W(x)$ that that optimizes the fit to the data of the monotone function that it defines. |
cdffine |
a vector of length nfine of an equally spaced mesh of values for the cumulative distribution function. |
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.
smooth.morph
,
landmarkreg
,
register.fd
# see the use of smooth.morph in landmarkreg.R
xrnd <- rbeta(50, 2, 5)
xrng <- c(0,1)
hist(xrnd)
range(xrnd)
cdfd <- cumfd(xrnd, xrng)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.