Learn R Programming

paleofire (version 1.2.4)

pfBoxCox: Box-Cox transformation of Charcoal series

Description

Box-Cox transformation of charcoal series, the maximum likelihood estimation of lambda is derived from the boxcox.R function in the Venables and Ripley MASS library included in R 2.6.1

Usage

pfBoxCox(serie, alpha = 0.01, type = "BoxCox1964")

Arguments

serie

A vector of charcoal values.

alpha

Numeric, the "shift" parameter, default=0.01.

type

Character, the Box-Cox transformation formulation, can be either "BoxCox1964" (default) for the original Box & Cox (1964) formulation, or "JohnDraper" for the John & Draper (1980) modulus transformation.

Value

X

Vector of transformed charcoal values

References

Venables, W. N., Ripley, B. D., & Venables, W. N. (1994). Modern applied statistics with S-PLUS (Vol. 250). New York: Springer-verlag. Box, G.E.P. & Cox, D. R.(1964) An analysis of transformations, Journal of the Royal Statistical Society, Series B, 26, 211-252. John, J. A. & Draper N. R. (1980) Analternative family of transformations, Applied Statistics, 29, 190-197.

See Also

pfTransform

Examples

Run this code
# NOT RUN {
# Select a site
ID=pfSiteSel(site_name=="Pas-de-Fond")

# Extract data
A=pfExtract(ID)

B=pfBoxCox(A[,4],0.1)
plot(B,type="l")


# }

Run the code above in your browser using DataLab