swapbc1 | R Documentation |
An MCMC sampler for loci using precomputed dispersion matrices, various priors, and a pre-selected set of variables. For use with BC1 (backcross) designs and recombinant inbred lines.
swapbc1(varcov, invars, rparm, nreps, ana.obj, locs=NULL,
locs.prior=NULL, tol=1e-10 )
varcov |
The result of |
rparm |
Scalar or vector with |
nreps |
How many cycles of MCMC to perform |
ana.obj |
A object produced by |
invars |
Which variables to start in the model. The first of these is
immediately removed, so it is merely a placeholder. The number of
genes in the model is therefore |
locs |
The columns of |
locs.prior |
The prior mass to associate with each variable. Typically, these sum to one, but sometimes they might each be set to one (as in computing lod scores). |
tol |
Used in forming QR decomposition. Let it be. |
An MCMC sampler for loci using the object of make.varcov
is
executed. This sampler uses the exact posterior probability under the
assumed correctness of the regression model using expected genotypes
given marker values. This amounts to linearizing the likelihood with
respect to the (possibly unknown) locus states. For models where the
loci are fully informative markers this is the true posterior.
The chain is implemented as follows: given a set of regressor
variables to start, one variable is removed, all regressor
variables not in the model are examined to determine the effect of each
on the posterior. One variable is sampled. The process is repeated until
each variable has been removed and a new one sampled in its place
(possibly the same variable that was removed is sampled). And this whole
cycle is repeated nreps
times.
A list with components:
config |
A k by k by nreps array of the locations sampled in each iteration. |
posteriors |
A vector of length |
coefs |
A k by k matrix of the regression coefficients. |
call |
The call to |
cond |
The |
marg |
The |
alt.marginal |
A vector with |
alt.coef |
A vector with |
Charles C. Berry cberry@ucsd.edu
Berry C.C. (1998) Computationally Efficient Bayesian QTL Mapping in Experimental Crosses. ASA Proceedings of the Biometrics Section, 164-169.
swapf2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.