eval_const: Evaluate a constraint matrix for a set of prior/posterior...

Description Usage Arguments Value

View source: R/utils.R

Description

Evaluate a constraint matrix for a set of prior/posterior samples

Usage

1
eval_const(hyp, samples)

Arguments

hyp

A constraint matrix defining a hypothesis.

samples

A matrix. Prior or posterior samples, the number of columns corresponds to the number of groups, the number of rows the number of samples

Value

A number between 0 and 1. The proportion of samples in which the constraints are met.


BayesianPower documentation built on July 1, 2020, 6:02 p.m.