prepare_data: prepare data for iteration process

Description Usage Arguments Details Value Author(s)

View source: R/createlms.R

Description

prepare data for repeated iteration process

Usage

1
2
prepare_data(data, group = NULL, subject = "SIC", sex = NULL,
  value = "value", age = "age", lb = -Inf, ub = Inf)

Arguments

data

dataframe containing measurement values, age, sex, and subject identifier

group

optional variable indicating groups of subjects within the data frame in most cases (families)

subject

subject identifier

sex

column containing the sex (or any other stratum), ideally of type character, iteration process will run on each of the levels separately

value

numeric column containing the measurement values

age

numeric column containing the age

lb

optional - lower bound for age

ub

optional - upper bound for age

Details

given a dataframe, the column name of the subject identifier, sex, age, value and group colums, the function creates a dataframe containing only these five columns with the standard column names group, subject, sex, age, value. lines containing missing values are removed.

Value

list of dataframes containing the columns group, subject, sex, age, value; one dataframe for every level of sex

Author(s)

Mandy Vogel


childsds documentation built on Oct. 2, 2017, 1:02 a.m.