Learn R Programming

R2D2ordinal (version 1.0.1)

dcut: PDF of cut-points

Description

This function computes the value of the probability density function for the cut-points. The distribution is induced by a Dirichlet distribution on the prior probabilities of the response.

Usage

dcut(tau, W, alpha, log = FALSE)

Value

value of pdf at tau

Arguments

tau

cut-points

W

global variance

alpha

concentration parameters for prior probabilities of Y

log

logical; if TRUE, returns log pdf

Examples

Run this code
tau = c(-1,1) # set cut points
W = 1 # set value of global variance
alpha = c(1,1,1) #concentration parameters
dcut(tau, W, alpha, log=FALSE)

Run the code above in your browser using DataLab