Learn R Programming

qvirus (version 0.0.5)

cds_diff: Create Mean Standardized Differences from Longitudinal CD4 Data

Description

This function calculates the mean standardized differences of CD4 counts across time for each individual in the dataset.

Usage

cds_diff(cd_data)

Value

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

cds3_diff

Mean standardized differences of raw CD4 count values.

Arguments

cd_data

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

Examples

Run this code
data(cd_3)
cd_data <- cd_3[,-1]
result <- cds_diff(cd_data)

Run the code above in your browser using DataLab