Description Usage Arguments Details Value Examples

View source: R/psDiagnostics.R

Summarizes the balance of the propensity scores in treatment and control populations

1 |

`data` |
Data frame, containing the balanced population, including weights and/or matches. The data frame must contain a treatment indicator variable called 'treat'. |

`weights` |
Vector, containing the weights to use in assessing the balanced population (defaults to unweighted). |

This function calculates key summary statistics based on the propensity scores in the treatment and control populations. For a balanced population, one should observe similar mean values of the propensity scores in the two populations. Similarly to covariate diagnostics, one should observe a decrease in the standardized difference of the mean propensity score after balancing. Finally, one should see the ratio of variances in the propensity score move closer to 1 after balancing.

Matrix, containing the summary statistics for the calculated propensity score

1 2 3 4 5 | ```
## Not run:
ps.score.summary(myData)
ps.score.summary(myData, weights = myData$is_matched)
## End(Not run)
``` |

OHDSI/Centaur documentation built on May 9, 2017, 3:24 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.