Response: Compute a response probability from COMPASS mcmc samples.

Description Usage Arguments Details Value Examples

View source: R/Response.R

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

1
2
3
4
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

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

RGLab/COMPASS documentation built on Feb. 11, 2021, 3:23 p.m.