ipaq_scores: IPAQ scores

View source: R/ipaq_scores.R

ipaq_scoresR Documentation

IPAQ scores

Description

Calculates the continuous and categorical scores for the 'International Physical Activity Questionnaire (IPAQ)' long form.

Usage

ipaq_scores(data, truncate = F)

Arguments

data

A data frame object containing 25 columns with the replies to the IPAQ long format (parts 1-4). Yes/no replies should be coded as yes-1, no-0. Time should be in minutes.

truncate

Logical vector. If TRUE all walking, moderate and vigorous time variables are truncated following the IPAQ short rule. Variables exceeding 180 minutes are truncated to be equal to 180 minutes. Default FALSE.

Value

A data frame object with the continuous (metabolic equivalent of task minutes (MET-min)/week) and categorical scores (low, moderate, high). Returns NA for cases with missing values.

References

The IPAQ Group (2005). Guidelines for Data Processing and Analysis of the International Physical Activity Questionnaire. Retrieved from <https://sites.google.com/site/theipaq/home>


Mariana-plr/IPAQlong documentation built on July 31, 2023, 2:12 a.m.