Two-level function: item is chosen with the third parameter.

two.level.multivariate.calculate.UC(
  population,
  idx.variables,
  idx.item,
  singular.action = "skip"
)

Arguments

population

matrix or dataframe containing data columns, item column and other columns

idx.variables

data columns (indexes or character vectors)

idx.item

item column (index or character vector)

singular.action

action to take when one of the items is observed once; one of 'skip' (default) or 'fail'

Value

list with items:

  • group.means (matrix, row*variable)

  • all.means (vector)

  • W (the within covariance matrix)

  • B (the between covariance matrix)

Details

Items who are observed only once cannot contribute to within covariance estimation. In that case, either we skip its contribute (default) or fail.

Multivariate functions supporting paper:

Bozza, A., Taroni, F., Marquis, R., M. Schmittbuhl - "Probabilistic evaluation of handwriting evidence: likelihood ratio for authorship"

See also