natural_course: Natural Course

View source: R/helper.R

natural_courseR Documentation

Natural Course

Description

This function specifies the natural course intervention on the treatment variable in data.

Usage

natural_course(data, treat_var)

Arguments

data

a data frame containing the observed data.

treat_var

a string specifying the treatment variable in data.

Value

a vector containing the intervened values of the same size as the number of rows in data.

Examples

data <- gfoRmulaICE::compData
natural_course <- natural_course(data = data, treat_var = "A1")


gfoRmulaICE documentation built on April 3, 2025, 8:53 p.m.