get_theta_linear: Find Scale Parameter for Inverse Gamma Hyperprior of Linear Effects with Spike and Slab Prior
Description
This function implements a optimisation routine that computes the scale parameter \(v_2\) and selection parameter
\(r\) of the inverse gamma prior IG(\(v_1\),\(v_2\)) for \(\tau^2\) when \(\tau^2\sim N(0,r(\delta)\tau^2)\)
and given shape paramter
such that approximately \(P(\beta\le c_2|spike)\ge 1-\alpha_2\) and \(P(\beta\ge c_1|slab)\ge 1-\alpha1\).
\(\alpha_1\) and \(\alpha_2\) should not be smaller than 0.1 due to numerical sensitivity and possible instability. Better change \(c_1\), \(c_2\).
\(\alpha_1\) and \(\alpha_2\) should not be smaller than 0.1 due to numerical sensitivity and possible instability. Better change \(c_1\), \(c_2\).
References
Nadja Klein, Thomas Kneib, Stefan Lang and Helga Wagner (2016). Automatic Effect Selection in Distributional Regression via Spike and Slab Priors.
Working Paper.