Skip to contents

For each curve ctDiscretePars returned – one per subject and pair of processes – the quantities read off it, per draw, and their distribution over draws.

Usage

# S3 method for class 'ctDiscretePars'
summary(object, probs = c(0.025, 0.5, 0.975), ...)

Arguments

object

Output of ctDiscretePars with plot = FALSE.

probs

Quantiles of each quantity over draws.

...

Not used.

Value

A data frame, one row per subject, pair of processes (row the one affected, col the one acting) and quantity, with the mean, sd and quantiles over draws, and where the object carries the fit's estimate (an optimised fit's population effects, attr(object, 'estimate')), the quantity read off the estimate's curve, estimate. The quantities:

peak

The value of largest magnitude, with its sign.

peaktime

The lag at which it occurs.

halftime

The first lag after the peak at which the curve's magnitude has fallen to half the peak's, interpolated between lags. For an autoregression, which peaks at lag zero, its half-life: with impulseType = 'observed', standardise = TRUE, that of the autocorrelation. NA for a draw whose curve does not fall that far within the lags computed; beyond is the share of such draws, and the summary is over the others.

area

The area under the curve over the lags computed: for a unit impulse over long enough lags, the cumulative effect.

The lags are those ctDiscretePars was given, so their spacing bounds the precision of peaktime and halftime, and their range what halftime and area can see.

Examples

dp <- ctDiscretePars(ctstantestfit, times = seq(0, 5, .1), nsamples = 20)
summary(dp)