Description Usage Arguments Details Value Author(s) References
dsp
is an MCMC sampler for the methodology proposed by Dunson and
Stanford in Bayesian Inferences on Predictors of Conception
Probabilities (2005).
1 2 3 4 |
dspDat |
An object of |
nSamp |
The number of post-burn-in scans for which to perform the sampler. |
nBurn |
Number of sampler scans included in the burn-in phase. |
nThin |
Value such that during the post-burn-in phase, only every
|
hypGam |
Either Each exponentiated regression coefficient has a prior defined in terms of 5 hyperparameters. These hyperparameters are the (i) prior probability of the point mass state, the (ii) shape and (iii) rate of the gamma distribution state, and the (iv) lower (v) and upper bounds of the gamma distribution state. If not specified by the function input, then a default value is provided
for each of the hyperparameters. These default parameters, correponding to
their description in the preceeding paragraph, are (i) Exponentiated regression coefficient hyperparameter specifications must be
provided as follows. If the input to Each second-level |
tuningGam |
Either |
hypPhi |
Either |
tuningPhi |
Metropolis tuning parameter for the variance parameter of the woman-specific fecundability mulitpliers. The proposal value for this variance parameter is sampled from a uniform distribution with support as determined by the tuning parameter. |
trackProg |
One of either |
progQuants |
Vector with values in (0,1]. Ignored if |
saveToFile |
|
outPath |
String specifying the local path into which output files
containing the MCMC samples are to be placed. Ignored if |
Takes preprocessed fertility data in the form of a
dspDat
object and performs an MCMC sampling algorithm for the
Dunson and Stanford day-specific probabilities of conception methodology.
Selection of the covariates to include in the model is performed when
creating the dspDat
object.
dsp
returns a list containing the following objects
formula
Model formula
, as passed to the
dsp
sampler through the input to the dspDat
parameter.
hypGam
list
containing a sub-hierarchy of
list
s, each containing the hyperparameter values used for the
sampler for the regression coefficients.
tuningGam
********
hypPhi
Hyperparameters for the variance parameter of the woman-specific fecundability multipliers.
tuningPhi
Metropolis tuning parameter used for sampling the variance parameter of the woman-specific fecundability multipliers.
nSamp
Input to nSamp
parameter.
nBurn
Input to nBurn
parameter.
nThin
Input to nThin
parameter.
outPath
If saveToFile
specified as TRUE
, then
the input to outPath
parameter.
phi
If saveToFile
specified as FALSE
, then a
vector containing the post-burn-in samples for the variance parameter of
the woman-specific fecundability multipliers.
xi
If saveToFile
specified as FALSE
, then a
data.frame
containing the post-burn-in samples for the
woman-specific fecundability multipliers.
gam
If saveToFile
specified as FALSE
, then a
data.frame
containing the post-burn-in samples for the regression
coefficients.
David A. Pritchard and Sam Berchuck, 2015
Dunson, David B., and Joseph B. Stanford. "Bayesian inferences on predictors of conception probabilities." Biometrics 61.1 (2005): 126-133.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.