summary {qvirus}R Documentation

Summarize an InteractionClassification object

Description

Computes summary statistics by classification group from an object of class InteractionClassification, including mean differences in viral load and CD4 counts, and the number of observations per cluster.

This function summarizes the payoffs object by classification.

Usage

summary(object, ...)

summary(object, ...)

Arguments

object

A payoffs object.

...

Additional arguments (not used).

Value

A data.frame with one row per interaction cluster and the following columns:

classification

Cluster label (as factor).

cds_diff_mean

Mean of CD4 differences in the group.

vlogs_diff_mean

Mean of viral load differences in the group.

n

Number of observations in the group.

Examples

set.seed(42)
data(cd_3)
cd_data <- cd_3[,-1]
cd_result <- cds_diff(cd_data)
data(vl_3)
vl_data <- vl_3[,-1]
vl_result <- vlogs_diff(vl_data)
result <- InteractionClassification(cd_result = cd_result, vl_result = vl_result)
summary(result)
set.seed(42)
data(cd_3)
cd_data <- cd_3[,-1]
cd_result <- cds_diff(cd_data)
data(vl_3)
vl_data <- vl_3[,-1]
vl_result <- vlogs_diff(vl_data)
result <- InteractionClassification(cd_result = cd_result, vl_result = vl_result)
data(preds)
payoffs_results <- estimate_payoffs(result, preds)
summary(payoffs_results)

[Package qvirus version 0.0.4 Index]