Description Usage Arguments Value References
Integrated Propensity Score estimator based on projection weighting function
1 2 3 4 5 6 7 8 9 10 11 12 |
d |
An n x 1 vector of binary treatment adoption indicators. |
x |
An n x k matrix of covariates to be used in the propensity score. First element must be a vector of 1's. |
xbal |
An n x l, l≤q k, matrix of “raw” covariares to be balanced (does not need to include interaction terms). Default is |
Treated |
Default is FALSE, which aims to achieve covariate distribution balance among treated, untreated and overall subpopulations. If TRUE, then the estimator aims to achieve covariate distribution balance for the treated subpopulation. |
beta.initial |
An optional k x 1 vector of initial values for the parameters to be optimized over. |
lin.rep |
Logical argument to whether an estimator for the asymptotic linear representation of the IPS parameters should be provided. Deafault is TRUE. |
whs |
An optional n x 1 vector of weights to be used. If NULL, then every observation has the same weights. |
x_keep |
Default is FALSE. If TRUE, we return covariate matrix in the output. |
maxit |
The maximum number of iterations. Defaults to 50000 |
allRows |
Default is FALSE, which attempts to fist check if all rows of the matrix x are unique. If there are draws, it tries to optimize the code, but requires 'x' to be sorted such that all unique rows are together. |
A list containing the following components:
coefficients |
The estimated IPS_proj coefficients |
fitted.values |
The IPS_proj fitted probabilities |
linear.predictors |
The IPS_proj estimated index (X'beta) |
lin.rep |
An estimator of the IPS_proj coefficients' asymptotic linear representation |
converged |
An integer code. 0 indicates successful completion |
x |
The model matrix (i.e. the matrix of covariates used to estimate the IPS_proj parameters). Only returned if |
Sant'Anna, Pedro H. C, Song, Xiaojun, and Xu, Qi (2019), Covariate Distribution Balance via Propensity Scores, Working Paper <https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3258551>.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.