dcut {R2D2ordinal} | R Documentation |
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)
Arguments
tau |
cut-points |
W |
global variance |
alpha |
concentration parameters for prior probabilities of Y |
log |
logical; if TRUE, returns log pdf |
Value
value of pdf at tau
Examples
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)
[Package R2D2ordinal version 1.0.1 Index]