target::Target< T > Class Template Reference

#include <target.hpp>

Inheritance diagram for target::Target< T >:

Public Member Functions

 Target ()
 Constructor.
 
 Target (const arma::Col< T > &y, const arma::Mat< T > &a, const arma::Mat< T > &x1, const arma::Mat< T > &x2, const arma::Mat< T > &x3, const arma::Col< T > &parameter, const arma::Col< T > &weights)
 Target class constructur. More...
 
 Target (const arma::Col< T > &y, const arma::Mat< T > &a, const arma::Mat< T > &x1, const arma::Mat< T > &x2, const arma::Col< T > &parameter, const arma::Col< T > &weights)
 
 Target (const arma::Col< T > &y, const arma::Mat< T > &a, const arma::Mat< T > &x1, const arma::Mat< T > &x2, const arma::Mat< T > &x3, const arma::Col< T > &parameter)
 
 Target (const arma::Col< T > &y, const arma::Mat< T > &a, const arma::Mat< T > &x1, const arma::Mat< T > &x2, const arma::Col< T > &parameter)
 
void weights (const arma::Col< T > &weights)
 
arma::Col< T > weights ()
 
arma::Col< T > A ()
 
arma::Col< T > Y ()
 
arma::Mat< T > X1 ()
 
arma::Mat< T > X2 ()
 
arma::Mat< T > X3 ()
 
void update_data (const arma::Col< T > &y, const arma::Mat< T > &a, const arma::Mat< T > &x1, const arma::Mat< T > &x2, const arma::Mat< T > &x3)
 
virtual void calculate (bool target=true, bool nuisance=true, bool propensity=false)
 
void update_par (const arma::Col< T > &parameter)
 update_par - More...
 

Public Attributes

arma::Col< T > alpha
 
arma::Col< T > beta
 
arma::Col< T > gamma
 

Protected Attributes

arma::Col< T > nuisance
 
arma::Col< T > target
 
arma::Col< T > propensity
 
arma::Col< T > _response
 
arma::Mat< T > _exposure
 
arma::Mat< T > _x1
 
arma::Mat< T > _x2
 
arma::Mat< T > _x3
 
arma::Col< T > _weights
 

Detailed Description

template<class T>
class target::Target< T >

Abstract class for Targeted Learning problems

Definition at line 19 of file target.hpp.

Constructor & Destructor Documentation

◆ Target()

template<typename T>
target::Target< T >::Target ( const arma::Col< T > &  y,
const arma::Mat< T > &  a,
const arma::Mat< T > &  x1,
const arma::Mat< T > &  x2,
const arma::Mat< T > &  x3,
const arma::Col< T > &  parameter,
const arma::Col< T > &  weights 
)

Target class constructur.

Parameters
y- Response vector
a- Exposure/treatment vector
x1- Design matrix for target model
x2- Design matrix for nuisance model
x3- Design matrix for exposure propensity
parameter- Parameter vector (order: target, nuisance, and optionally propensity)
weights- Optional weights
Returns
Target class

Definition at line 34 of file target.cpp.

Member Function Documentation

◆ update_par()

template<typename T>
void target::Target< T >::update_par ( const arma::Col< T > &  parameter)

update_par -

Parameters
parameter- Description of parameter

Definition at line 51 of file target.cpp.


The documentation for this class was generated from the following files: