classify {lwc2022}R Documentation

Classify Cognitive Function Based on Total Scores

Description

This function classifies individuals into cognitive function groups based on their total cognition score, which is calculated from immediate word recall, delayed word recall, serial subtraction, and backwards counting scores. The classification creates three categories of cognitive function.

Usage

classify(data)

Arguments

data

A dataframe containing cognitive test scores, including total immediate word recall, delayed word recall, serial subtraction, and backwards counting scores.

Details

The function creates a total cognitive score by summing the scores for immediate word recall, delayed word recall, serial subtraction, and backwards counting. It then classifies the cognitive function into three levels:

Value

A dataframe with:

Examples

# Assuming `cog_data` is a dataframe with the relevant columns
classified_data <- classify(cog_data_score)


[Package lwc2022 version 1.0.0 Index]