natural_course {gfoRmulaICE}R 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")


[Package gfoRmulaICE version 0.1.0 Index]