sampleDelta2: Sample delta squared.
Description
This function samples the signal-to-noise hyperparameter delta squared.
Usage
sampleDelta2(pos, x, q, B, S, sig2, alphad2, betad2)
Arguments
B
Regression coefficients.
alphad2
Gamma prior hyperparameter.
betad2
Gamma prior hyperparameter.
Value
New sample of delta squared.
References
For details of the sampling, see:Dondelinger et al. (2012), "Non-homogeneous dynamic Bayesian networks with
Bayesian regularization for inferring gene regulatory networks with
gradually time-varying structure", Machine Learning.