pava.cpp File Reference

Pooled Adjacent Violator Algorithms. More...

#include <cmath>
#include <target/utils.hpp>
Include dependency graph for pava.cpp:

Go to the source code of this file.

Functions

arma::mat target::pava (arma::vec y, const arma::vec &x=arma::vec(), arma::vec w=arma::vec())
 Weighted Pooled Adjacent Violator Algorithm. More...
 

Detailed Description

Pooled Adjacent Violator Algorithms.

Author
Klaus K. Holst

Definition in file pava.cpp.

Function Documentation

arma::mat target::pava ( arma::vec  y,
const arma::vec &  x,
arma::vec  w 
)

Weighted Pooled Adjacent Violator Algorithm.

Pooled Adjacent Violator Algorithm for

Parameters
yResponse variable
xOptional covariate to order the response variable after
wOptional weight vector

Definition at line 22 of file pava.cpp.