Learn R Programming

childsds (version 0.7.4)

mock_values: Mock Values

Description

mock values for a given reference, given age and given sex

Usage

mock_values(df, sex, age, ref, item)

Arguments

df

data frame containing the age and sex

sex

name of the sex variable

age

name of the age variable

ref

a valid RefGroup object

item

a valid imte present in ref

Value

data frame containing the additional column with random numbers

Details

the function creates random values for given age and sex values and a given reference