Generates a graph used to compare the distribution of propensity score values in the cotnrol and treatment groups
Data Frame - containing the dataset with previously calculated PS. The data frame must contain a treatment indicator variable called 'treat' and a propensity score value called 'ps_values'.
This function uses sm.density.compare to plot an overlapping density distribution plot of the propensity scores for the two groups allowing one to visually assess the area of common support
1 2 3 4
## Not run: ps.compare(myData) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.