get_OR_matching {debiasedTrialEmulation} | R Documentation |
Estimate Odds Ratio (OR) after Propensity Score Matching
Description
Computes the odds ratio for a binary outcome after applying propensity score matching.
Computes the risk ratio for a binary outcome after applying propensity score matching.
Computes the hazard ratio for a time-to-event outcome after propensity score matching.
Computes OR, RR, and HR for a binary or time-to-event outcome after stratification.
Computes the risk ratio for a binary outcome after applying propensity score stratification.
Computes the hazard ratio for a time-to-event outcome after propensity score stratification.
Computes the odds ratio for a binary outcome after applying propensity score weighting.
Computes the risk ratio for a binary outcome after applying propensity score weighting.
Computes the hazard ratio for a time-to-event outcome after applying propensity score weighting.
Usage
get_OR_matching(data, names_outcome)
get_RR_matching(data, names_outcome)
get_HR_matching(data, names_outcome)
get_OR_stratification(data, names_outcome)
get_RR_stratification(data, names_outcome)
get_HR_stratification(data, names_outcome)
get_OR_weighting(data, names_outcome, IPTW)
get_RR_weighting(data, names_outcome, IPTW)
get_HR_weighting(data, names_outcome, IPTW)
Arguments
data |
A dataset containing treatment assignment and outcome variables. |
names_outcome |
A character vector of outcome variable names. |
IPTW |
A numeric vector of inverse probability of treatment weights. |
Value
A data frame with the estimated log odds ratio, standard error, and p-value.