estimCovCellGeneral: estimCovCellGeneral

View source: R/estimCovCellGeneral.R

estimCovCellGeneralR Documentation

estimCovCellGeneral

Description

Estimation of mean and covariance for a label in a partition.

Usage

estimCovCellGeneral(cell, cytometry, labels, type = "standard", alpha = 0.85)

Arguments

cell

Labell of the clsuter of interest.

cytometry

Data of the partition, without labels.

labels

Labels of the partition.

type

How to estimate covariance matrices of a cluster. 'standard' is for using cov(), while 'robust' is for using robustbase::covMcd.

alpha

Only when type = 'robust'. Indicates the value of alpha in robustbase::covMcd.

Value

A list containing:

mean

Mean of the cluster.

cov

Covariance of the cluster.

weight

Weight associated to the cluster.

type

Type of the cluster.

Examples

estimCovCellGeneral('Basophils', Cytometry1[,1:10], Cytometry1[,11])


HristoInouzhe/optimalFlow documentation built on April 23, 2023, 5:45 p.m.