Learn R Programming

NiLeDAM (version 0.4)

tests-methods: Method "tests" for Class "ages"

Description

Test if a set of ages belongs to a given number of populations or alternatively find out the most probable number of populations within a range.

Usage

# S4 method for ages
tests(object, nbmin = 1, nbmax = NULL, level = object@level, verbose = TRUE)

Value

An object of class ageTests or oneAgeTest depending on the value of nbmax (see section "Details").

Arguments

object

an object of type ages as produced by the function calculateAges()

nbmin

a numeric. Minimum tested number of populations.

nbmax

a numeric. Maximum tested number of populations.

level

a numeric. Confidence interval level. Default is equal to object@level, i.e., to the level of confidence used to calculate the ages.

verbose

logical. Activates the verbose mode.

Usage

tests(object, nbmin=1, nbmax=NULL, level=object@level, verbose=TRUE)

Methods

  • signature(object = "ages"): an object of type ages as produced by the function calculateAges().

  • ...: other arguments passed to the method's function (see section Usage)

Author

Jean-Marc Montel, jean-marc.montel@ensg.inpl-nancy.fr

Nathalie Vialaneix, nathalie.vialaneix@inrae.fr

Details

The function successively tests all values from nbmin to nbmax and keeps the smallest accepted one (returns an error if all supplied values are rejected). In this case, the output value is an object of class ageTests.

If nbmax is NULL, the results are kept even if the test is rejected. In this case, the output value is an object of class oneAgeTest.

The performed tests are those described in Montel et al. (1996).

References

Montel J.M., Foret S., Veschambre M., Nicollet C., Provost A. (1996) Electron microprobe dating of monazite. Chemical Geology, 131, 37--53.

See Also

calculateAges(), oneAgeTest, ageTests

Examples

Run this code
data(srilanka)
calculated.ages <- calculateAges(srilanka, nloops = 10)
tests(calculated.ages)
tests(calculated.ages, 1, 3)

Run the code above in your browser using DataLab