kappaPrior: Braid kappa Bayesian Prior

View source: R/kappaPrior.R

kappaPriorR Documentation

Braid kappa Bayesian Prior

Description

Generates a Bayesian prior object on the BRAID parameter kappa to stabilize parameter fitting

Usage

kappaPrior(spread, strength = "moderate")

Arguments

spread

Rough estimate of the standard deviation of measurement noise or errors expected in a given data set. Commonly used values are standard deviation of negative/positive controls or root mean squared error of a preliminary surface fit.

strength

String indicating the influence of the BRAID prior on the resulting fit. Must be one of "mild", "moderate" (the default), "high", or "none".

Value

An object of class kappaPrior containing two numeric elements, spread, and strength. Used in BRAID fitting functions to stabilize the parameter kappa

Examples

prior <- kappaPrior(0.05,"mild")

bfit <- braidrm(measure ~ concA + concB, incompleteExample,
                prior=prior, getCIs=FALSE)
summary(bfit)

braidrm documentation built on Sept. 30, 2024, 9:40 a.m.