estimate_payoffs {qvirus} | R Documentation |
Estimate Payoff Parameters for HIV Phenotype Interactions
Description
This function estimates the payoff parameters for HIV phenotype interactions based on the provided classification object and predictions from a viral load model. It calculates the mean differences in viral loads and CD4 counts, as well as the average payoffs for each classification.
Usage
estimate_payoffs(object, predictions)
Arguments
object |
An object of class |
predictions |
A |
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)
data(preds)
payoffs_results <- estimate_payoffs(result, preds)
[Package qvirus version 0.0.4 Index]