convo: derived pmf by subtraction

Description Usage Arguments Value See Also

View source: R/utils.R

Description

Given two pmfs and an age vector, returns the derived pmf of the convolution x-y. Lengths of x,y and index must be equal.

Usage

1
convo(x, y, index)

Arguments

x

is a numeric vector (older pmf)

y

is a numeric vector (younger pmf)

index

is a numeric vector (years)

Value

a length(index) numeric vector of the convolved distribution of x-y

See Also

convo_minus


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.