Extracts the priors from an object of class bayesnecfit or bayesmanecfit.

pull_prior(object)

Arguments

object

An object of class bayesnecfit or bayesmanecfit returned by bnec.

Value

A list containing the priors.

Examples

library(bayesnec)
data(manec_example)
pull_prior(manec_example)
#> $nec4param
#>                                        prior class      coef group resp dpar
#>                                 normal(0, 5)     b                          
#>                                 normal(0, 5)     b Intercept                
#>  normal(-0.475731934041565, 3.6135432617749)     b                          
#>  normal(-0.475731934041565, 3.6135432617749)     b Intercept                
#>                   gamma(5, 2.28313180499098)     b                          
#>                   gamma(5, 2.28313180499098)     b Intercept                
#>    normal(2.63236428713204, 3.6135432617749)     b                          
#>    normal(2.63236428713204, 3.6135432617749)     b Intercept                
#>                         student_t(3, 0, 2.5) sigma                          
#>  nlpar               lb               ub       source
#>   beta                                           user
#>   beta                                   (vectorized)
#>    bot                                           user
#>    bot                                   (vectorized)
#>    nec 0.03234801324009 3.22051966293556         user
#>    nec 0.03234801324009 3.22051966293556 (vectorized)
#>    top                                           user
#>    top                                   (vectorized)
#>                       0                       default
#> 
#> $ecx4param
#>                                        prior class      coef group resp dpar
#>                                 normal(0, 5)     b                          
#>                                 normal(0, 5)     b Intercept                
#>  normal(-0.475731934041565, 3.6135432617749)     b                          
#>  normal(-0.475731934041565, 3.6135432617749)     b Intercept                
#>                   gamma(5, 2.28313180499098)     b                          
#>                   gamma(5, 2.28313180499098)     b Intercept                
#>    normal(2.63236428713204, 3.6135432617749)     b                          
#>    normal(2.63236428713204, 3.6135432617749)     b Intercept                
#>                         student_t(3, 0, 2.5) sigma                          
#>  nlpar               lb               ub       source
#>   beta                                           user
#>   beta                                   (vectorized)
#>    bot                                           user
#>    bot                                   (vectorized)
#>   ec50 0.03234801324009 3.22051966293556         user
#>   ec50 0.03234801324009 3.22051966293556 (vectorized)
#>    top                                           user
#>    top                                   (vectorized)
#>                       0                       default
#>