Description Usage Arguments Value
Retrieve the ML fits from the fitVectors column in a table of fits.
1 2 3 4 5 6 7 8 9 10 11 | RetrieveFittedModelsFromFitVectors(
fitMappings,
tableFits = fitMappings$tableFits,
modelTypes = fitMappings$arguments$modelTypes,
modelTypesNew = NULL,
argsMixedGaussian = fitMappings$arguments$argsMixedGaussian,
X = fitMappings$X,
tree = fitMappings$tree,
SE = fitMappings$SE,
setAttributes = FALSE
)
|
fitMappings |
an object of S3 class PCMFitModelMappings. |
tableFits |
a data.table |
modelTypes |
a character vector of model types. Default:
|
modelTypesNew |
NULL or a character vector containing all model-types in fitMappings$arguments$modelTypes and, eventually, additional model-types. |
argsMixedGaussian |
a list of arguments passed to the
|
X |
a |
tree |
a phylo object with N tips. Default:
|
SE |
a k x N matrix specifying the standard error for each measurement in
X. Alternatively, a k x k x N cube specifying an upper triangular k x k
factor of the variance covariance matrix for the measurement error
for each node i=1, ..., N.
Default: |
setAttributes |
logical indicating if an X and tree attribute should be set to each model-object. This is used for later evaluation of the log-likelihood of the score for the model on the given tree and data. Using a global tree for that is a bad idea, because the model may be fit for a subtree, i.e. clade. Default FALSE. |
a copy of tableFits with added column "model" and, if necessary, updated integer model-type indices in the "fitVector" column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.