PolyfunctionalityScore {COMPASS} | R Documentation

## 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, markers = NULL)

    ## S3 method for class 'COMPASSResult'
    PolyfunctionalityScore(x, degree, n, markers = NULL)

    ## Default S3 method:
    PolyfunctionalityScore(x, degree, n, markers = NULL)

### 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.
`markers` | A `character` specifying the markers for which to compute the score. Must match names in `markers()`.

### Value

A numeric vector of polyfunctionality scores.

### Examples

    PolyfunctionalityScore(CR)

[Package COMPASS version 1.30.0 Index]