Arguments
data_m
An $N_m$ x 3 data matrix for MZ twins. $N_m$ is the number of MZ twin pairs. The first two columns are traits and the third column is age (or other covariates).
data_d
An $N_d$ x 3 data matrix for DZ twins. $N_d$ is the number of DZ twin pairs. The first two columns are traits and the third column is age (or other covariates).
model
A character vector of length 3. Each element specifies the function for the A, C or E component respectively. The A and C components can be 'd'(dynamic), 'c'(constant) or 'n'(NA). The E component can only be 'd' or 'c'. Thus, $model=c('c','c','c')$ is cor
knot_a
The number of interior knots of the B-spline for the A component, which must be no less than 3. The default value is 5.
knot_c
The number of interior knots of the B-spline for the C component, which must be no less than 3. The default value is 5.
knot_e
The number of interior knots of the B-spline for the E component, which must be no less than 3. The default value is 5.