score_risk: score_risk: Determine Risk Status of Child

View source: R/score_risk.R

score_riskR Documentation

score_risk: Determine Risk Status of Child

Description

This function determines the risk status of children based on parent BMI. Low risk: both parents BMI < 25; High risk: Mom BMI >= 30 and Dad BMI >=25. An error of +/- 0.5 BMI is allowed but only 1 parent can have BMI = 25.5 for Low Risk.

Usage

score_risk(risk_data, respondent, parID)

Arguments

risk_data

a data.frame all parent BMI data following the naming conventions described above

respondent

a string indicating the variable name for the parent who completed the questionnaires and had height/weight measured at Visit 1

Details

To use this function, the data must be prepared according to the following criteria: 1) The data must include who completed the questionnaire (i.e., the respondent), the measured parent BMI, and both parents' reported BMIs.The respondent will have measured BMI at Visit 1 and will self-report the height and weight of the other parent. 2) The BMI columns/variables must match the following naming conventions - 'parent_bmi', 'sr_mom_bmi', and 'sr_dad_bmi'

Note, as long as variable names match those listed, the dataset can include other variables

Value

A dataset with amount of MVPA calculated for each day and week. If sleep = TRUE, parent-reported sleep will also be included

See Also

Raw data from Qualtrics was processed using the following script: util_fbs_parent_v1dat, util_merge_v1

Examples


# risk categories
risk_score <- score_risk(risk_data, respondent = 'parent_respondent', parID = 'ID')

## Not run: 



alainapearce/kellertools documentation built on Feb. 25, 2024, 7:16 a.m.