convo_add: derived pmf by addition

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 y+x. Lengths of x,y and index must be equal.

Usage

1
convo_add(x, y, index)

Arguments

x

is a numeric vector (younger pmf)

y

is a numeric vector (older pmf)

index

is a numeric vector (years)

Value

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

See Also

convo_plus


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