tests-methods {NiLeDAM} | R Documentation |
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 signature 'ages'
tests(object, nbmin = 1, nbmax = NULL, level = object@level, verbose = TRUE)
Arguments
object |
an object of type |
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 |
verbose |
logical. Activates the verbose mode. |
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).
Value
An object of class ageTests
or
oneAgeTest
depending on the value of nbmax
(see section "Details").
Usage
tests(object, nbmin=1, nbmax=NULL, level=object@level, verbose=TRUE)
Methods
-
signature(object = "ages")
: an object of typeages
as produced by the functioncalculateAges()
. ...: other arguments passed to the method's function (see section Usage)
Author(s)
Jean-Marc Montel, jean-marc.montel@ensg.inpl-nancy.fr
Nathalie Vialaneix, nathalie.vialaneix@inrae.fr
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
data(srilanka)
calculated.ages <- calculateAges(srilanka, nloops = 10)
tests(calculated.ages)
tests(calculated.ages, 1, 3)