U.S. flag

An official website of the United States government

The Ag Data Commons is migrating

The Ag Data Commons is migrating to a new institutional portal on Figshare. The current system is available for search and download only. The new platform is open for submission with assistance from Ag Data Commons curators. Please contact NAL-ADC-Curator@usda.gov, if you need to publish or update your datasets.

Other Access

The information on this page (the dataset metadata) is also available in these formats:


via the DKAN API

MTGSAM: Multiple-Trait Gibbs Sampler for Animal Models

A set of FORTRAN programs to implement a multiple-trait Gibbs sampling algorithm for (co)variance component inference in animal models (MTGSAM) was developed. The MTGSAM programs are available to the public. The programs support models with correlated genetic effects and arbitrary numbers of covariates, fixed effects, and independent random effects for each trait. Any combination of missing traits is allowed. The programs were used to estimate variance components for 50 replicates of simulated data. Each replicate consisted of 50 animals of each sex in each of four generations, for 400 animals in each replicate for two traits. For MTGSAM, informative prior distributions for variance components were inverted Wishart random variables with 10 df and means equal to the simulation parameters. A total of 15,000 Gibbs sampling rounds were completed for each replicate, with 2,000 rounds discarded for burn-in. For multiple-trait derivative free restricted maximum likelihood (MTDFREML), starting values for the variance components were the simulation parameters. Averages of posterior mean of variance components estimated using MTGSAM with informative and flat prior distributions for variance components and REML estimates obtained using MTDFREML indicated that all three methods were empirically unbiased. Correlations between estimates from MTGSAM using flat priors and MTDFREML all exceeded .99.

Release Date
United States Department of Agriculture
Contact Name
Van Tassell, Curt
Contact Email
Public Access Level
Program Code
005:040 - Department of Agriculture - National Research
Bureau Code
005:18 - Agricultural Research Service