add_known_propensity_score {tidyhte} | R Documentation |
Uses a known propensity score
Description
This replaces the propensity score model with a known value of the propensity score.
Usage
add_known_propensity_score(hte_cfg, covariate_name)
Arguments
hte_cfg |
|
covariate_name |
Character indicating the name of the covariate name in the dataframe corresponding to the known propensity score. |
Value
Updated HTE_cfg
object
Examples
library("dplyr")
basic_config() %>%
add_known_propensity_score("ps") -> hte_cfg
[Package tidyhte version 1.0.2 Index]