Generates random effect vectors (bVec) that account for family relationships through kinship-based correlation structures.
GRAB.SimubVec(nSub, nFam, FamMode, tau)Data frame with columns:
Subject identifiers.
Random effect values following appropriate correlation structure.
Number of unrelated subjects. If 0, all subjects are related.
Number of families. If 0, all subjects are unrelated.
Family structure: "4-members", "10-members", or "20-members".
See GRAB.SimuGMat for pedigree details.
Variance component for random effects.
For related subjects, random effects follow a multivariate normal distribution with covariance proportional to kinship coefficients. For unrelated subjects, effects are independent normal random variables.