Learn R Programming

childsds (version 0.9.11)

mock_value: Mock Value

Description

mock a value for a given reference

Usage

mock_value(ref, item, sex = c("male", "female"), age)

Value

a random value from the conditional distribution (conditionally on age and sex)

Arguments

ref

a valid RefGroup object

item

a valid item present in ref

sex

character male or female

age

numeric age value

Author

mandy

Details

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