Learn R Programming

qvirus (version 0.0.5)

vlog_diff: Create Mean Differences from Logarithmic Viral Load Data

Description

This function calculates the mean differences of lograithmic viral loads across time for each individual in the dataset.

Usage

vlog_diff(vl_data)

Value

An object of class "Interaction" with the following components:

vlog3_diff

Mean differences of logarithmic viral load values.

Arguments

vl_data

A data frame of longitudinal viral load values per individual, where rows represent patients and columns represent sequential measurements across time (e.g., years or visits).

Examples

Run this code
data(vl_3)
vl_data <- vl_3[,-1]
result <- vlog_diff(vl_data)

Run the code above in your browser using DataLab