Description Usage Arguments Details Value
calculate probability for a matrix/mesh given a statistical model
1 2 3 4 5 6 7 8 9 10 11 12 | getDataLikelihood(x, model, align = FALSE, lmDataset = NULL,
lmModel = NULL)
## S3 method for class 'matrix'
getDataLikelihood(x, model, align = FALSE,
lmDataset = NULL, lmModel = NULL)
## S3 method for class 'mesh3d'
getDataLikelihood(x, model, align = FALSE,
lmDataset = NULL, lmModel = NULL)
getCoefficients(x, model, align = TRUE, lmDataset = NULL, lmModel = NULL)
|
x |
matrix or mesh3d |
model |
a model of class pPCA |
align |
logical: if TRUE the data will be aligned to the model's mean |
lmDataset |
optional: landmarks on the dataset used for alignment. |
lmModel |
optional: landmarks on the model's mean used for alignment. |
getDataLikelihood
estimates the likelihood of a dataset for belonging to the model by exploiting the Chi-square-distribution of the (squared) Mahalanobisdistance, which, in turn, is simply the squared norm of the sample's coefficients in the latent space.
getDataLikelihood
returns a probability, while getCoefficients
returns the (scaled) scores in the pPCA space.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.