Added IPTW function options
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
\alias{iptw}
|
||||
\title{Compute inverse probability of treatement weights (IPTW) for use with PCM}
|
||||
\usage{
|
||||
iptw(df = NULL, Y = NULL, X = NULL)
|
||||
iptw(df = NULL, Y = NULL, X = NULL, target = "ate")
|
||||
}
|
||||
\arguments{
|
||||
\item{df}{data.frame containing the data}
|
||||
@ -12,6 +12,8 @@ iptw(df = NULL, Y = NULL, X = NULL)
|
||||
\item{Y}{string containing the name of the column where the dependent variable is stored in df}
|
||||
|
||||
\item{X}{vector of strings containing the names of the columns where the independent variables are stored in df}
|
||||
|
||||
\item{target}{string containing the target causal effect of interest. Either "ate" (average treatment effect, default), "att" (average treatment effect on the treated) or "atu" (average treatment effect on the untreated)}
|
||||
}
|
||||
\value{
|
||||
A vector of IPT weights
|
||||
|
Reference in New Issue
Block a user