MpriorOK: Check validity of format of custom prior for M

View source: R/fun_M.R

MpriorOKR Documentation

Check validity of format of custom prior for M

Description

Check validity of format of custom prior for M

Usage

MpriorOK(prior)

Arguments

prior

a custom prior for M must be a matrix with columns for M and and associated probabalities P(M = m). The M column must begin at 0 and the probabilities must sum to 1.

Value

boolean. Is the prior formatted properly?


dwp documentation built on July 9, 2023, 5:59 p.m.