powered by
Computes the error weighted mean and MSWD of some samples taking into covariances.
weightedmean(ages, prefix = NULL)
an object of class results
results
is either a string with the prefix of the samples that need to be averaged, or a vector of sample names.
a list with items: avgt: the weighted mean age err: the standard error of avgt MSWD: the Mean Square of the Weighted Deviates
avgt
err
MSWD
# NOT RUN { data(Melbourne) ages <- process(Melbourne$X,Melbourne$irr,Melbourne$fract) weightedmean(ages,"MD2-") # }
Run the code above in your browser using DataLab