Description Usage Arguments Value Examples
View source: R/define_pcprior.R
Given'U' and 'alpha', this function returns the scale parameter of the PC prior for the mixing parameter 'gamma' balancing main versus interaction; the scale parameter specifies the decay rate from the base model 'gamma=0', this can be deifined by the user through a statement such as Prob(gamma < U) = alpha
1 | pcprior.interaction.lambda(u, alpha)
|
u |
the upper bound for the mixing parameter 'gamma', from the statement Prob(gamma < U) = alpha |
alpha |
the probability level in Prob(gamma < U) = alpha |
It returns 'lambda', the scael parameter of the PC prior for tghe mixing balancing main versus interaction
1 2 | # Prob(gamma < u) = alpha
pcprior.interaction.lambda(u=0.95, alpha=0.99)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.