Added IPTW function
This commit is contained in:
21
man/iptw.Rd
Normal file
21
man/iptw.Rd
Normal file
@ -0,0 +1,21 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/iptw.R
|
||||
\name{iptw}
|
||||
\alias{iptw}
|
||||
\title{Compute inverse probability of treatement weights (IPTW) for use with PCM}
|
||||
\usage{
|
||||
iptw(df = NULL, Y = NULL, X = NULL)
|
||||
}
|
||||
\arguments{
|
||||
\item{df}{data.frame containing the data}
|
||||
|
||||
\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}
|
||||
}
|
||||
\value{
|
||||
A vector of IPT weights
|
||||
}
|
||||
\description{
|
||||
This function computes IPTW weights for causal inference with the pcm function
|
||||
}
|
Reference in New Issue
Block a user