tprob {tfer}R Documentation

Return a table of T probabilities for all observed values

Description

Return a table of T probabilities for all observed values

Usage

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

set.seed(123)
y = transfer()

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


[Package tfer version 1.3 Index]