Learn R Programming

IsoplotR (version 0.17)

ludwig: Linear regression of X,Y,Z-variables with correlated errors, taking into account decay constant uncertainties.

Description

Implements the maximum likelihood algorithm of Ludwig (1998)

Usage

ludwig(x, ...)

# S3 method for default ludwig(x, ...)

# S3 method for UPb ludwig(x, exterr = FALSE, ...)

Arguments

x

an object of class UPb

...

optional arguments

exterr

propagate external sources of uncertainty (e.g., decay constant)?

References

Ludwig, K.R., 1998. On the treatment of concordant uranium-lead ages. Geochimica et Cosmochimica Acta, 62(4), pp.665-676.

Examples

Run this code
# NOT RUN {
f <- system.file("UPb4.csv",package="IsoplotR")
d <- read.data(f,method="U-Pb",format=4)
fit <- ludwig(d)
# }

Run the code above in your browser using DataLab