gt_data_frame: Convert Data to Usable Format

View source: R/classes.R

gt_data_frameR Documentation

Convert Data to Usable Format

Description

Checks and converts data to satisfy criteria to be used in internal ptetools functions. In particular, the function takes in a data.frame, checks if it has the right columns to be used to calculate a group-time average treatment effect, and sets the class of the data.frame to include gt_data_frame

Usage

gt_data_frame(data)

Arguments

data

data that will be checked to see if has right format for computing group-time average treatment effects

Value

gt_data_frame object


ptetools documentation built on April 12, 2025, 1:28 a.m.