Description Usage Arguments Details Value print(oadaAICtable) components oadaAICtable components See Also
oadaAICtable
takes diffusion data in the form of an nbdaData object (nbdaData
) or a list of nbdaData
objects (for multiple diffusions). It then fits a set of models using oadaFit
and return them in an object
of class oadaAICtable
. Arguments not described below are used internally by combineOadaAICtables
when
making calls to oadaAICtable
and can be ignored by the user.
1 2 3 4 5 6 7 8 9 10 | oadaAICtable(nbdadata, constraintsVectMatrix, typeVect = NULL,
offsetVectMatrix = NULL, cores = 1, modelsPerCorePerSet = NULL,
writeProgressFile = F, saveTableList = F, statusBar = NULL,
startValue = NULL, method = "nlminb", gradient = T,
iterations = 150, aicUse = "aicc", lowerList = NULL,
upperList = NULL, combineTables = F, MLEs = NULL, SEs = NULL,
MLEilv = NULL, SEilv = NULL, MLEint = NULL, SEint = NULL,
convergence = NULL, loglik = NULL, aic = NULL, aicc = NULL,
netComboModifierVect = "", saveModels = F, stripData = F,
models = NULL)
|
nbdadata |
an object of class ( |
constraintsVectMatrix |
a numerical matrix specifying the constraints, with each row specifiying a model to be fitted.
The number of columns is equal to the number of parameters in the ( |
typeVect |
optional character vector specifying if each model is "asocial" or "social". However, it is not usually necessary to specify, since models with all s parameters constrained =0 are automatically classified as "asocial", and others are assumed to be "social". |
offsetVectMatrix |
an optional numerical matrix specifying the offsets, with each row specifiying the offsets for each
model to be fitted. The number of columns is equal to the number of parameters in the ( |
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 1. For a standard desktop computer at the time of writing 4-6 is advised. |
modelsPerCorePerSet |
optional numerical. If specified the models can be fit in sets, and a progress file written
after each set is completed. This means progress is not completely lost in the case of a crash/ powercut etc. For example,
if we have 400 models, we can specify |
writeProgressFile |
logical. If set to T, a file is written to the working directory when each set of models have
been completed with the oadaAICtable for the models fitted so far. In the event of a crash, the remining models can be
fitted as a separate set, then combined using |
saveTableList |
logical. If set to T, a file is written to the working directory containing a list of oadaAICtable
objects- one for each set of models per core (see |
statusBar |
optional logical. Status bar only works when |
startValue |
optional numeric vector giving start values for the maximum likelihood optimization. Length to match the number of parameters fitted in the full model. |
method |
optional character string passed to |
gradient |
optional logical passed to |
iterations |
optional numerical passed to |
aicUse |
string specifying whether to use "aicc" or "aic". |
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. |
combineTables |
logical used internally by |
saveModels |
logical determining whether the fitted model objects should be saved as a list as a component in the
|
stripData |
logical. By default, when |
models |
an optional list of model objects of class |
Each row of constraintsVectMatrix
and offsetVectMatrix
determines a model to
be fitted. For each row, constrained nbdaData
objects are created using (constrainedNBDAdata
) with
constraintsVect=constraintsVectMatrix[i,]
and offsetVect=offsetVectMatrix[i,]
. A model is then fitted to
the nbdaData
object(s) using oadaFit
.
An object of class oadaAICtable
.
A data.frame giving a summary of models ordered by AIC can be obtained using print(<name of oadaAICtable>)
. This has
the following columns, listed in order:
Model number, i.e. the row of constraintsVectMatrix
used to generate the model.
Type of model. noILVs, additive (ILV effects on asocial learning only), multiplicative (all ILVs have same effect on asocial and social learning), unconstrained (differing effects on asocial and social learning for at least one ILV), socialEffectsOnly (ILV effects only on social learning),asocial
A representaion of the network effects present in the model, i.e. the constraints on the s
parameters. See constrainedNBDAdata
.
Used for TADA models only, set to NA here.
The constraint on each parameter, as taken from constraintsVectMatrix
The offset on each parameter, as taken from offsetVectMatrix
Was convergence reported by the optimization algorithm?
-log-likelihood for the model.
Maximum likelihood estimates for s parameters.
Maximum likelihood estimates for effects of ILVs on asocial learning.
Maximum likelihood estimates for effects of ILVs on social learning.
Maximum likelihood estimates for multiplicative effects of ILVs see oadaFit
.
Standard errors for each parameter, set to 0 when a parameter was constrained. See oadaFit
.
AIC for the model.
AICc for the model.
Difference in AICc or AIC from the best model.
Relative support for the model compared to the best model, calculated as exp(-0.5*deltaAICc).
Akaike weight for the model. Can be interpretted as the probability that model has the highest predictive power (K-L information) out of the set of models considered.
The unconstrained data the model is fitted to, as a list of nbdaData objects.
A list of fitted model objects of class oadaFit
, if saved.
Was convergence reported by the optimization algorithm? (Ordered by constraintsVectMatrix
).
-log-likeihood for models (ordered by constraintsVectMatrix
).
AICc for models (ordered by constraintsVectMatrix
).
AIC for models (ordered by constraintsVectMatrix
).
constraintsVectMatrix
input to the function.
offsetVectMatrix
input to the function.
Maximum likelihood estimates for s parameters (ordered by constraintsVectMatrix
).
Standard errors for s parameters (ordered by constraintsVectMatrix
).
Maximum likelihood estimates for effect of ILs on asocial learning (ordered by
constraintsVectMatrix
).
Standard errors for effect of ILs on asocial learning (ordered by constraintsVectMatrix
).
Maximum likelihood estimates for effect of ILs on social learning (ordered by
constraintsVectMatrix
).
Standard errors for effect of ILs on social learning (ordered by constraintsVectMatrix
).
Type of models (ordered by constraintsVectMatrix
).
Difference in AICc or AIC from the best model. (ordered by constraintsVectMatrix
).
Relative support for the model compared to the best model, calculated as exp(-0.5*deltaAICc).
(ordered by constraintsVectMatrix
).
Akaike weight for the model. (ordered by constraintsVectMatrix
).
data.frame to be output by the print method for oadaAICtable
(see above).
typeSupport
, networksSupport
, typeByNetworksSupport
, modelAverageEstimates
,
variableSupport
, unconditionalStdErr
, combineOadaAICtables
. For TADA models
use tadaAICtable
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.