data(lalonde)
pscores <- propensity_scores(
.data = lalonde,
treatment = 'treat',
response = 're78',
confounders = c('age', 'educ')
)
test_that("propensity_scores() output is correct", {
expect_equal(length(pscores), nrow(lalonde))
expect_vector(pscores)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.