multiModelLowerLimits_multicore: Test the sensitivity of the lower limit of an s parameter to...

Description Usage Arguments Value See Also

View source: R/oadaAICtable.R

Description

Runs multiModelLowerLimits across multiple computer cores. see documentation for multiModelLowerLimits for details.

Usage

1
2
3
4
5
multiModelLowerLimits_multicore(which, aicTable, cores = 2,
  deltaThreshold = Inf, conf = 0.95, modelIndex = NULL,
  searchRange = NULL, exclude.innovations = T, innovations = NULL,
  startValue = NULL, lowerList = NULL, upperList = NULL,
  method = "nlminb", gradient = T, iterations = 150)

Arguments

which

numeric giving the parameter for which the confidence interval is to be calculated. The appropriate number can be identified from the fitted model, by entering <modelName>@varNames to extract the variable names from the model. Each variable name is preceded by its number.

aicTable

an object of class oadaAICtable or tadaAICtable.

cores

numerical giving the number of computer cores to be used in parallel to fit the models in the set, thus speeding up the process. By default set to 2. For a standard desktop computer at the time of writing 4-6 is advised.

deltaThreshold

optional numerical determining the threshold difference in AICc/AIC for a model to be included in the output. e.g. deltaThreshold=10 includes all models within 10 AICc units of the best model.

conf

numerical giving the level of confidence required, defaulting to the traditional 0.95.

modelIndex

optional numeric vector specifiying which models to include in the output, subject to deltaThreshold.

searchRange

optional numeric vector of length two, giving the range within which to search for the lower endpoint. If omitted, the function searches between 0 and the MLE for s in each model.

exclude.innovations

logical determining whether innovation events (the first individual to learn in each diffusion) should be excluded from the calculation- since we know the innovation events must occur by asocial learning not social transmission.

innovations

numerical giving the number of innovations across all diffusions. By default this is assumed to be one innovator per diffusion in which there were no demonstrators (see demons argument in nbdaData)

startValue

optional numeric vector giving start values for the maximum likelihood optimization. Length to match the number of parameters fitted in the full model.

lowerList

optional numeric matrix giving lower values for the maximum likelihood optimization for each model. Columns to match the number of parameters fitted in the full model, rows matched to the number of models. Can be used if some models have convergence problems or trigger errors.

upperList

optional numeric matrix giving upper values for the maximum likelihood optimization for each model. Columns to match the number of parameters fitted in the full model, rows matched to the number of models. Can be used if some models have convergence problems or trigger errors.

method

optional character string passed to oadaFit.

gradient

optional logical passed to oadaFit.

iterations

optional numerical passed to oadaFit.

Value

data.frame. See multiModelLowerLimits for details.

See Also

multiModelLowerLimits


whoppitt/NBDA documentation built on April 25, 2021, 7:55 a.m.