Simulate twin data from a linear normal ACE/ADE/AE model.
Number of monozygotic twin pairs
Number of dizygotic twin pairs
Effect of covariates (labelled x1,x2,...) of type 1. One distinct covariate value for each twin/individual.
Effect of covariates (labelled g1,g2,...) of type 2. One covariate value for each twin pair.
Intercept parameter.
Variance of random effects (in the order A,C,D,E)
Logical indicating wether to include random slopes of the variance components w.r.t. x1,x2,...
Treshold used to define binary outcome y0
Logical variable indicating whether to censor outcome
Logical indicating if wide data format should be returned
Additional arguments parsed on to lower-level functions