Learn R Programming

imPois (version 0.0.7.5)

iprior: Characterize Imprecise Prior

Description

A set of linear inequalities is used for characterizing a polygonal convex set. The chull function in the grDevices package and the convhulln function in the geometry package are used to search for extreme points constructing a convex hull.

Usage

iprior(ui, ci, pmat)

Arguments

ui
constraint matrix (k x p), see below.
ci
constrain vector of length k, see below.
pmat
matrix (k x p) containig coordinate information in d-dimensions.

Examples

Run this code
# lc0 <- list(lhs=rbind(diag(2), -diag(2)), rhs=c(0,0,-1,-1))
# op <- iprior(ui=rbind(diag(2), -diag(2)), ci=c(0,0,-1,-1))
# op <- iprior(ui=rbind(c(1,0),c(0,1),c(-1,-1)), ci=c(0,0,-5))
op <- iprior(ui=rbind(c(1,0),c(0,1),c(0,-1),c(1,1),c(-2,-1)),
   ci=c(1,2,-8,5,-14)) # (3,8),(1,8), (1,4),(3,2)(6,2)

Run the code above in your browser using DataLab