4 0 US !=ABACBA0CBAconstrains all parameters corresponding to A to be equal, similarly for B and C. The 7th parameter would be left unconstrained. This sequence applied to an unstructured 4 x 4 matrix would make it banded, that is
site.gen 2 # G header line site 0 US .3 !=0A0AA0 !GPUPUUP .1 .4 .1 .1 .3 gendefines a structure for the genotype by site interaction effects in a MET in which the genotypes are independent random effects within sites but are correlated across sites with equal covariance.
site 0 FA2 !G4PZ3P4P !=00000000VVVV 4*.9 # initial values for 1st factor 0 3*.1 # initial values for 2nd factor, first fixed at 0 4*.2 # initial values for site variancesdefines a 2 factor Factor Analytic model for 4 sites with equal variance. The first loading in the second factor is constrained equal to 0 for identifiability. P places restrictions on the magnitude of the loadings and the variances to be positive.
xfa(site,2) 0 XFA2 !=VVVV0 !4P4PZ3P 4*.2 # initial specific variances 4*1.2 # initial loadings for 1st factor 0 3*.3 # initial loadings for 2nd factordefines a 2 factor Factor analytic model in which the specific variances are all equal.
xfa(dTrial,1).Family 2 5 0 XFA1 !GPFPFP !=%ABCDEFGH 0.72631 0.000 .242713 0.000 .882465 .846305 .04419 .743393 Family 0 GIV1 xfa(dTrial,1).Line 2 5 0 XFA1 !GPFPFP !=%ABCDEFGH 0.72631 0.000 .242713 0.000 .882465 .846305 .04419 .743393 Line 0 GIV2However, for a larger term, there may not be enough letters in the alphabet and so !VCC is required as in:
!VCC 1 ... xfa(dTrial,1).Family 2 5 0 XFA1 !GPFPFP 0.72631 0.000 .242713 0.000 .882465 .846305 .04419 .743393 Family 0 GIV1 xfa(dTrial,1).Line 2 5 0 XFA1 !GPFPFP 0.72631 0.000 .242713 0.000 .882465 .846305 .04419 .743393 Line 0 GIV2 21:28 29Better still, in this case we can use just one structure, twice:
xfa(dTrial,1).Family 2 5 0 XFA1 !GPFPFP !NAME 'FIVE' 0.72631 0.000 .242713 0.000 .882465 .846305 .04419 .743393 Family 0 GIV1 xfa(dTrial,1).Line 2 !USE 'FIVE' #5 0 XFA1 !GPFPFP # Initial parameters now omitted here Line 0 GIV2associates the model definition labeled FIVE with the second structure.