getDataLikelihood: calculate probability/coefficients for a matrix/mesh given a...

Description Usage Arguments Details Value

View source: R/pPCA.r

Description

calculate probability for a matrix/mesh given a statistical model

Usage

 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)

Arguments

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.

Details

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.

Value

getDataLikelihood returns a probability, while getCoefficients returns the (scaled) scores in the pPCA space.


zarquon42b/RvtkStatismo documentation built on May 4, 2019, 9:09 p.m.