PAV | R Documentation |
The function monotonizes a sequence of probabilities or means based on the pool-adjacent-violators algorithm.
function(formula,data,type)
formula |
an object of class "formula" expressing dose-response relationship. Details of model specification are given under 'Details' |
data |
data frame containing the variables in the formula |
type |
character string specifying the type of data used in the model, "continuous" or "binomial" or "Poisson" |
For details on how the pool-adjacent-violators algorithm is defined see Silvapulle and Sen (2004).
Formula should be specified as in the form number/total ~ dose for binomial data and response ~ for continuous data.
A vector containing the monotonized sequence.
Signe M. Jensen
Silvapulle, M. J. and Sen, P. K. (2004). Constrained statistical inference: order, inequality, and shape constraints. New York: John Wiley & Sons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.