Response {COMPASS} | R Documentation

## Compute a response probability from COMPASS mcmc samples.

### Description

Compute a response probability based on the selected markers, evaluating the probability that a subject exhibits a response of size `degree` or greater. i.e., the probability of at least `degree` markers exhibiting an antigen specific response.

### Usage

    Response(x, markers, degree, max.prob, at_least_n)

    ## S3 method for class 'COMPASSResult'
    Response(x, markers = NULL, degree = 1, max.prob = FALSE, at_least_n = NULL)

### Arguments

`x` | a `COMPASSResult` object.
`markers` | a `vector` of marker names.
`degree` | the `numeric` degree of functionality to test.
`max.prob` | `logical` Use the max probability rather than the average across subsets. Defaults to FALSE.
`at_least_n` | `logical` response of degree x or greater with at_least_n subsets responding.

### Details

The response is computed from the sampled Gamma matrix, subsetting on the selected markers, and

### Value

A `vector` of response probabilities for each subject.

### Examples

    Response(CR, markers = c("M1","M2","M3"), degree = 2)

[Package COMPASS version 1.32.0 Index]