Description Usage Arguments Value Author(s) Examples
Plot the marginal effects for respondents that likely received and did not receive the treatment.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
dataframe |
Dataframe from which we will estimate our regression model. |
formula |
Symbolic representation of the model to be estimated. This is written in "typical" R language (i.e. y ~ x1 + x2), such that y is the outcome variable and x1 and x2 are the predictors. |
similarity_measures |
Vector(s) from dataframe that contains the similarity measures to be used as weights. Possible values for measure_type = c("osa", "lv", "dl", "hamming", "lcs", "qgram", "cosine", "jaccard", "jw", "soundex"). Default is "jaccard". |
bounds |
Minimum and maximum of uniform distribution we should draw cutoff values between. |
n |
Number of simulation rounds/iterations. |
model_type |
Statistical model to estimate. Currently support OLS and logistic ("ls", "logit"). |
k |
The penalty that you want to set for down-weighting inattentive respondents. Lower levels of k down-weight low attention participants more severely. |
k_plot |
Do you want to see a histogram of the cutoffs used in the simulations? |
return_data |
Do you want the data that's used to construct the plot? Default = FALSE. |
Plot of the marginal effects for "compliers" and "non-compliers".
Jeffrey Ziegler (<jeffrey.ziegler[at]emory.edu>)
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.