BASSStandard: Function that estimates a standard Bass model

Description Usage Arguments Author(s) See Also Examples

Description

This function allows to estimate the parameters of a standard Bass model, BM, (Bass, 1969) by using two different methods: nonlinear least squares, NLS, or OPTIM, which minimizes the residual sum of squares.

Usage

1
2
BASS.standard(sales, method = "nls", prelimestimates = c(sum(sales) +
              100, 0.01, 0.1), ous= 100, alpha = 0.05, display = T, max.iter = 100)

Arguments

sales

Instantaneous sales

method

Method for parameter estimation, 'nls' or 'optim'

prelimestimates

A vector containing the starting values for parameter estimation. Default values are m = sum(sales)+100, p = 0.01, q = 0.1

alpha

Significance level for confidence intervals

display

T or F, to display the plot of the model or not, the default value is T

ous

Numeric value for the out-of-sample forecasts, the default value is 100

max.iter

Maximum number of iterations, the default value is 100. This option works only with method="nls"

Author(s)

Zanghi Federico federico.zanghi.11@gmail.com

See Also

BASS.standard.generator

BASS.plot

make.instantaneous

BASS.generalized

GG.model

UCRCD

Examples

1
2
3
#Example 1
Sales <- c(840,1470,2110,4000,7590,10950,10530,9470,7790,5890)
BASS.standard(sales = Sales,method = 'nls')

federicozanghi/DIMORA documentation built on Nov. 6, 2021, 2:32 a.m.