add_known_propensity_score: Uses a known propensity score

View source: R/recipe-api.R

add_known_propensity_scoreR 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

HTE_cfg object to update.

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

tidyhte documentation built on Aug. 14, 2023, 5:08 p.m.