View source: R/ks.propensity_score_matching.R
Propensity score matching.
1 2 3 4 5 6 | ks.propensity_score_matching(
dataset,
match_by = c("age_at_diagnosis", "gender.x"),
method = "nearest",
distance = "logit"
)
|
dataset |
Original dataset. |
match_by |
Vector describing by which variables should the dataset be matched. |
method |
Passed to 'matchit()'. |
distance |
Passed to 'matchit()'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.