calc_ages: Calculates ages based on birthdates and test/MRI dates, and...

Description Usage Arguments Value Examples

View source: R/calc_ages.R

Description

calc_ages Creates a dataframe where age and subject timepoint have been added to the data. Both MRI and Test age are calculated, and 'Age' is the mean between these two. If only of of MRI or Test age are present, this one is used for Age. Also calculates intervals between test and MRI, baseline to every subsequent testing, and intervall between timepoints.

Usage

1

Arguments

data

The MOAS or a MOAS generated file.

Value

a data frame with added/replaced age and timepoint variables.

Examples

1
2
3
4
## Not run: 
calc_ages(data)

## End(Not run)

LCBC-UiO/MOAS documentation built on Dec. 21, 2018, 7:13 p.m.