Skip to contents

Get constraints from a list of Priors

Usage

get_covariate_constraints(cov_obj)

Arguments

cov_obj

A Covariates object.

Value

A matrix with columns "lower" and "upper" with rows for each Prior.

Examples

psborrow2:::get_covariate_constraints(
  add_covariates(
    c("cov1", "cov2", "cov3"),
    list(
      normal_prior(0, 10),
      beta_prior(0.3, 0.3),
      gamma_prior(30, 1)
    )
  )
)
#>      lower upper
#> [1,]  -Inf   Inf
#> [2,]     0     1
#> [3,]     0   Inf