The function to generate one group of univariate kin pair (e.g., only DZ twins) data using a multivariate norm approach, given the ACE components.
kinsim_single(
name = "KinPair1",
Rel = 1,
r_c = 1,
n = 100,
mu = 0,
ace = c(1, 1, 1)
)Returns data.frame with the following:
group name of the kin pairs
level of genetic relatedness for the kin pairs
level of common envrionment correlation of the kin pairs
id
Additive genetic component for kin1 of the kin pairs
Additive genetic component for kin2 of the kin pairs
shared-environmental component for kin1 of the kin pairs
shared-environmental component for kin2 of the kin pairs
non-shared-environmental component for kin1 of the kin pairs
non-shared-environmental component for kin2 of the kin pairs
generated variable i for kin1
generated variable i for kin2
Assigned name for the simulated group of kin pairs
Genetic relatedness of the simulated kin pairs
Assumed common enviroment correlation
The number of generated kin pairs.(n PAIRS of data; The total number of participants is 2n)
The mean for generated variable
Vector of variance components under an ACE (additive genetics, common environment, unique environment) structure