Learn R Programming

adoption (version 0.6.4)

adoption: Modelling Utility Diffusion (GUI)

Description

This GUI allows real-time simulations of utility diffusion processes with various paramaters to better understand the dynamics of first trials.

Usage

adoption(user = NULL, Tend=25, quantiles = c(0.25, 0.75),
         included.models = c("Bass (1969)",
	     		     "Modified Bass",
			     "Goldenberg et al. (2010)",
			     "Generalized Goldenberg",
			     "Rand & Rust (2011)",
			     "Autoregressive (VAR)"),
         dt = NULL, data = NULL, cumdata = NULL, ...)

Arguments

user

string or list of model specifications. If model is a string, the gui expects a name of file that has been created by the button ‘pdf & save’ in a preceding session.

Otherwise user can be the return value of a preceding

Tend

Tstart and Tend give start and end point, respectively, of the simulation period. The time step is given in the gui.

quantiles

if given, also the quantiles of the (cumulative) number of adopters is shown. Note that quantiles leads to a slower performance of the gui.

included.models

character vector of standard models that should be included in the gui. Default is all.

data, dt, cumdata

A vector of number of trials data (or cummulative trials) and its corresponding time lag dt.

...

additional, secondary options, see RFoptions.

Value

A list of models with the latest parameters chosen.

Details

The package allows for parallel computing when the number of repetitions is larger than one. See the example below. HOWEVER THIS FUNCTION MAY NOT BE USED TOGETHER WITH THE R PACKAGE PARALLEL, OR SIMILAR PACKAGES.

Comments on the model definition and the gui are given in file adoption_gui.pdf.

References

  • Schlather, M. (2018) Introduction to the Gui of the R package 'adoption'. Technical Report. Attached with the package.

See Also

See the file adoption_gui.pdf for an introduction.

Examples

Run this code
# NOT RUN {
   
# }
# NOT RUN {
<!-- %  library(adoption);  library(RandomFieldsUtils) -->
# }
# NOT RUN {
  RFoptions(cores=2)  ## see package RandomFieldsUtils
  adoption(gui=interactive())
# }

Run the code above in your browser using DataLab