Description Usage Arguments Author(s) See Also Examples
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.
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)
|
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" |
Zanghi Federico federico.zanghi.11@gmail.com
1 2 3 | #Example 1
Sales <- c(840,1470,2110,4000,7590,10950,10530,9470,7790,5890)
BASS.standard(sales = Sales,method = 'nls')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.