tprob: Return a table of T probabilities for all observed values

Description Usage Arguments Value Examples

View source: R/tprob.R

Description

Return a table of T probabilities for all observed values

Usage

1
tprob(tferObj, x)

Arguments

tferObj

an object of class transfer

x

an optional set of values which specify the desired T-terms. E.g. x = c(0,1,2) would return T0, T1, and T2 and so on. Negative values of x will cause the function to stop. Values of x which exceed those observed will be assigned a value of zero. The return values will be returned in ascending order regardless of the order of x (although I suppose I could preserve the order if someone really cares).

Value

A table of T probabilities, giving the probability that x fragments were recovered given they were transferred and persisted according to the other inputs of the model.

Examples

1
2
3
4
5
set.seed(123)
y = transfer()

tprob(y)
tprob(y, 55:120) ## max observed value is 113

tfer documentation built on July 15, 2020, 5:08 p.m.

Related to tprob in tfer...