reformatFormula: (internal) Transoformation of the data.frame according to the...

Description Usage Arguments Value

View source: R/procFunctions.R

Description

This is an internal function extracting the variable names from the formula to modify the data.frame given so that the formatted variable names are used in the code inside.

Usage

1
reformatFormula(fml, dataOrigin, treatment, posttreat, cluster = "")

Arguments

fml

a formula object

dataOrigin

a data.frame object, original dataset

treatment

a string, containing treatment variable varname string

posttreat

a string, containing post-treatment variable varname string

cluster

a string, containing cluster variable varname. Default is "" which means either its mean process or not clustered.

Value

a data.frame which contains covariates W, treatment T, posttreat D, and the outcome Y as well as the cluster.


SMasa11/ptse documentation built on Sept. 11, 2019, 12:48 a.m.