Description Usage Arguments Details Value
This function is used to fit a normal model for the conditional distribution of the treatment given covariates, and returns the resulting score function values for the observed treatment. After fitting the observed values the user can specify specific fixed treatment values to evaluate the conditional density at these points.
1 2 | normal_gps(tx, covs, gps_val = NULL, interact_vars = NULL,
polynomial_vars = NULL, polynomial_deg = NULL, variable_selection = F)
|
tx |
Vector with the continuous treatment value, used for finding the initial parameter MLE's |
covs |
Matrix of observed covariates |
gps_val |
Scalar value or vector which contains the values to find the estimated generalized propensity score |
interact_vars |
Specifies a character subset of the variables from the matrix covs and adds in pairwise interactions between all included covariates |
polynomial_vars |
Specifies a character subset of variables from the matrix covs to include as polynomial terms |
polynomial_deg |
Scalar value that identifies to what power the polynomial variable should be raised |
variable_selection |
Indicator whether to perform variable selection using AIC backwards selection |
Currently assumes normal density for the conditional distribution.
Returns a list of objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.