powered by
Simulate random effect (i.e. bVec) based on family structure
GRAB.SimubVec(nSub, nFam, FamMode, tau)
a data frame including two columns: ID and random effect following a multivariate normal distribution
the number of unrelated subjects in simulations, if nSub = 0, then all subjects are related to at least one of the others.
nSub = 0
the number of families in simulation, if nFam = 0, then all subjects are unrelated to each other.
nFam = 0
"4-members", "10-members", or "20-members". Check Details section of function help(GRAB.SimuGMat) for more details.
"4-members"
"10-members"
"20-members"
Details
help(GRAB.SimuGMat)
variance component
nSub <- 10 nFam <- 1 FamMode <- "10-members" tau <- 2 bVec <- GRAB.SimubVec(nSub, nFam, FamMode, tau)
Run the code above in your browser using DataLab