target.cpp File Reference

Classes for targeted inference models. More...

#include <limits>
#include <target/target.hpp>
#include <target/glm.hpp>
Include dependency graph for target.cpp:

Go to the source code of this file.

Functions

template<typename T >
arma::Mat< T > target::rd2prob (const arma::Col< T > &rd, const arma::Col< T > &op)
 rd2prob - Computes risk probabilities given exposure 0 or 1. More...
 
template<typename T >
arma::Mat< T > target::rr2prob (const arma::Col< T > &rr, const arma::Col< T > &op)
 rr2prob - Computes risk probabilities given exposure 0 or 1. More...
 

Detailed Description

Classes for targeted inference models.

Author
Klaus K. Holst

Includes implementation of risk-difference estimator with nuisance model for log odds-product (MLE and DR estimator).

Definition in file target.cpp.

Function Documentation

◆ rd2prob()

template<typename T >
arma::Mat< T > target::rd2prob ( const arma::Col< T > &  rd,
const arma::Col< T > &  op 
)

rd2prob - Computes risk probabilities given exposure 0 or 1.

Parameters
rd- Risk difference vector
op- Odds-product vetor
Returns
arma::Mat<T> with two columns with probabilities given exposure 0 or 1

Definition at line 307 of file target.cpp.

◆ rr2prob()

template<typename T >
arma::Mat< T > target::rr2prob ( const arma::Col< T > &  rr,
const arma::Col< T > &  op 
)

rr2prob - Computes risk probabilities given exposure 0 or 1.

Parameters
rr- Relative risk vector
op- Odds-product vetor
Returns
arma::Mat<T> with two columns with probabilities given exposure 0 or 1

Definition at line 328 of file target.cpp.