powered by
This function calculates the values of diffusion curves that can be of "bass", "gompertz", "gsgompertz" or "weibull" type, given some parameters.
"bass"
"gompertz"
"gsgompertz"
"weibull"
difcurve( n, w = c(0.01, 0.1, 10), type = c("bass", "gompertz", "gsgompertz", "weibull"), curve = NULL )
Returns a matrix of values with each row being a period.
number of periods to calculate values for.
vector of curve parameters (see note). If argument curve is used, this is ignored.
diffusion curve to use. This can be "bass", "gompertz" and "gsgompertz". If argument curve is used, this is ignored.
if provided w and type are taken from an object of class diffusion, the output of diffusion.
w
type
diffusion
Oliver Schaer, info@oliverschaer.ch,
Nikolaos Kourentzes, nikolaos@kourentzes.com
diffusion for fitting a diffusion curve.
difcurve(w=c(0.01,0.1,10),20)
Run the code above in your browser using DataLab