generate_diffusion_discrete: Generate a Bass Diffusion curve in discrete time approach

Description Usage Arguments Value Examples

Description

Generate a Bass Diffusion curve in discrete time approach

Usage

1
generate_diffusion_discrete(m, p, q, t_min = 0, t_max = 20, dt = 1)

Arguments

m

upper bound of the number of adoptions

p

the coefficient of innovation

q

the coefficient of imitation

t_min

initial time point

t_max

the end of time frame

dt

observation interval

Value

data.frame(Time, N, dN); N for the cumulative adoptions, dN for new adoptions

Examples

1
2
3
4
dc <- generate_diffusion_discrete(140, 0.03, 0.41)
dc <- ts(dc[2:3], 0)
ts.plot(dc, col=c("green", "blue"))
legend("right", lty=1, legend=c("N", "dN"), col=c("green", "blue"))

Sheffield-Diffusion-Curve/DCGen documentation built on May 30, 2019, 1:35 p.m.