Learn R Programming

ArchaeoPhases (version 2.1.0)

boundaries: Phase Time Range

Description

Computes the shortest interval that satisfies \(P(PhaseMin < IntervalInf < IntervalSup < PhaseMax | M) = level\) for each phase.

Usage

boundaries(x, y, ...)

# S4 method for numeric,numeric boundaries(x, y, level = 0.95)

# S4 method for PhasesMCMC,missing boundaries(x, level = 0.95)

Value

The endpoints of the shortest time range (at a given level).

Arguments

x, y

A numeric vector. If y is missing, x must be an PhasesMCMC object.

...

Currently not used.

level

A length-one numeric vector giving the confidence level.

Methods (by class)

  • boundaries(x = numeric, y = numeric): Returns a length-two numeric vector (terminal times).

  • boundaries(x = PhasesMCMC, y = missing): Returns a TimeRange object.

Author

A. Philippe, M.-A. Vibet, N. Frerebeau

See Also

Other time ranges: hiatus(), transition()

Examples

Run this code
## Coerce to events
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
eve <- eve[1:10000, ]

## Compute min-max range by group
pha <- phases(eve, groups = list(A = c(1, 3), B = c(2, 4)))

## Compute phase ranges
bou <- boundaries(pha)
as.data.frame(bou)

## Compute phase transition
tra <- transition(pha)
as.data.frame(tra)

## Compute phase hiatus
hia <- hiatus(pha)
as.data.frame(hia)

Run the code above in your browser using DataLab