Classes for targeted inference models. More...
#include "glm.hpp"
Include dependency graph for target.hpp:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | target::Target< T > |
class | target::TargetBinary< T > |
class | target::RD< T > |
class | target::RR< T > |
class | target::ACE |
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.
- Copyright
- 2019-2020, Klaus Kähler Holst
Definition in file target.hpp.
Function Documentation
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.
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.