Usage
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