MpriorOK {dwp}R 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?


[Package dwp version 1.1 Index]