Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


COMPASS (version 1.10.2)

PolyfunctionalityScore: Compute the Polyfunctionality Score for each subject fit in a COMPASS model

Description

Computes the Polyfunctionality score for each observation from the gamma matrix of a COMPASS model fit. The scores are normalized to one.

Usage

PolyfunctionalityScore(x, degree, n)
"PolyfunctionalityScore"(x, degree, n)
"PolyfunctionalityScore"(x, degree, n)

Arguments

x
An object of class COMPASSResult, as returned by COMPASS. Alternatively, a matrix of functionality scores.
degree
A vector of weights. If missing, this is the 'degree of functionality', that is, the number of markers expressed in a particular category.
n
The total number of markers. This is inferred when x is a COMPASSResult, and is unused in that case.

Value

A numeric vector of polyfunctionality scores.

Examples

Run this code
PolyfunctionalityScore(CR)

Run the code above in your browser using DataLab